MySQL ERROR!!!
20.05.2012 18:53:04
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND `t1`.`subproduct` = `i`.`subprodu' at line 15
SELECT `i`.`image_id`, `i`.`subproduct`, `s_ext`, `b_ext` FROM `alltels_catalog_images` as `i`, ( SELECT `subproduct`, MIN(`sort`) AS `minsort` FROM `alltels_catalog_images` WHERE `onoff` = 1 GROUP BY `subproduct` ) as `t1` WHERE `i`.`subproduct` IN() AND `t1`.`subproduct` = `i`.`subproduct` AND `t1`.`minsort` = `i`.`sort` AND `i`.`onoff` = 1