Собственно вот наш красавец Код (Text): SELECT SQL_CALC_FOUND_ROWS l.`virtuemart_product_id` FROM `cms_virtuemart_products_ru_ru` as l JOIN `cms_virtuemart_products` AS p using (`virtuemart_product_id`) LEFT JOIN `cms_virtuemart_product_categories` ON p.`virtuemart_product_id` = `cms_virtuemart_product_categories`.`virtuemart_product_id` LEFT JOIN `cms_virtuemart_categories_ru_ru` as c ON c.`virtuemart_category_id` = `cms_virtuemart_product_categories`.`virtuemart_category_id` LEFT JOIN `cms_virtuemart_product_manufacturers` ON p.`virtuemart_product_id` = `cms_virtuemart_product_manufacturers`.`virtuemart_product_id` LEFT JOIN `cms_virtuemart_manufacturers_ru_ru` as m ON m.`virtuemart_manufacturer_id` = `cms_virtuemart_product_manufacturers`.`virtuemart_manufacturer_id` LEFT JOIN `cms_virtuemart_product_shoppergroups` ON p.`virtuemart_product_id` = `cms_virtuemart_product_shoppergroups`.`virtuemart_product_id` LEFT OUTER JOIN `cms_virtuemart_shoppergroups` as s ON s.`virtuemart_shoppergroup_id` = `cms_virtuemart_product_shoppergroups`.`virtuemart_shoppergroup_id` WHERE ((`product_name` LIKE "%GENEVRIER%" OR `product_s_desc` LIKE "%GENEVRIER%" OR `category_name` LIKE "%GENEVRIER%" OR `category_description` LIKE "%GENEVRIER%" OR `mf_name` LIKE "%GENEVRIER%") AND p.`published`="1" AND ( s.`virtuemart_shoppergroup_id`= "1" OR s.`virtuemart_shoppergroup_id` IS NULL ) ) group by p.`virtuemart_product_id` ORDER BY product_name ASC LIMIT 0, 10 Мне надо дополнить этот запрос на фильтрацию по значению дополнительного поля Спасибо