ERROR: 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 'GROUP BY it.id' at line 9
ERROR SQL: SELECT it.name, it.id, it.subcategoryid, it.price, it.onlinespecial, 
       ph.filename, pro.id AS promo, pro.discount_type AS metric, pro.discount AS discount, shipping 
  FROM item it 
  LEFT JOIN item_photos ph ON (ph.itemid=it.id AND ph.type='PRIMARY' AND ph.view='FRONT')
  LEFT JOIN promo pro ON (pro.itemid=it.id)
WHERE onlinespecial='YES'
 ORDER BY it.name 
 LIMIT 0, 25 
 GROUP BY it.id
Bagage