SELECT items.id, items.title,items.title_eng, items.state, items.hideprice, items.anons, items.price2rub AS price, images.path , 0 as relevance FROM `items` INNER JOIN `images` ON images.id_item=items.id WHERE ((false OR 1=1) AND items.material REGEXP '(^|,)(144)(,|$)' ) AND images.visible=0 AND items.visible=1 AND items.price1_ck=0 AND items.state IN (1,2,3,4,7,9) GROUP BY items.id ORDER BY relevance DESC LIMIT 1088,32