I have the following select
SELECT f.id, f.name FROM app_fields f, app_forms_tabs t WHERE f.type NOT IN (\'fieldtype_action\') AND f.id IN (264,271,273,158,16