Notice: Undefined index: store_id in /home/star5/public_html/catalog/controller/mall/home.php on line 18Notice: Undefined index: store_type in /home/star5/public_html/catalog/controller/mall/home.php on line 19Notice: Undefined index: template in /home/star5/public_html/catalog/controller/mall/home.php on line 20Notice: Undefined index: phone in /home/star5/public_html/catalog/controller/mall/home.php on line 21Notice: Undefined index: fax in /home/star5/public_html/catalog/controller/mall/home.php on line 22Notice: Undefined index: email in /home/star5/public_html/catalog/controller/mall/home.php on line 23Notice: Undefined index: memo in /home/star5/public_html/catalog/controller/mall/home.php on line 24Notice: Undefined index: title in /home/star5/public_html/catalog/controller/mall/home.php on line 25Notice: Undefined index: meta_description in /home/star5/public_html/catalog/controller/mall/home.php on line 26Notice: Undefined index: description in /home/star5/public_html/catalog/controller/mall/home.php on line 46Notice: Undefined index: introduce in /home/star5/public_html/catalog/controller/mall/home.php on line 47Error: 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 'ORDER BY p.date_added DESC LIMIT 5' at line 1
Error No: 1064
SELECT *, AS name, p.image, AS storename,s.url, AS manufacturer, AS stock, (SELECT AVG(r.rating) FROM review r WHERE p.product_id = r.product_id GROUP BY r.product_id) AS rating FROM product p LEFT JOIN product_description pd ON (p.product_id = pd.product_id) LEFT JOIN product_to_store p2s ON (p.product_id = p2s.product_id) LEFT JOIN manufacturer m ON (p.manufacturer_id = m.manufacturer_id) LEFT JOIN stock_status ss ON (p.stock_status_id = ss.stock_status_id) LEFT JOIN store s ON (s.store_id = p2s.store_id) WHERE p.status = '1' AND p.date_available <= NOW() AND pd.language_id = '1' AND ss.language_id = '1' and p2s.store_id= ORDER BY p.date_added DESC LIMIT 5