Select id from tm_templates where visible=1 and (keywords like '%th%' OR description OR type like '%th%') and adult=0 order by id desc
Sort aborted: Server shutdown in progress