საიტი მუშაობს სატესტო რეჟიმში
Warning: Undefined array key 1 in /home/ilandge/public_html/view/pages/products.php on line 19
პროდუქცია
ფილტრი
SELECT t1.*,t2.namege as 'subcat',t2.slug as 'subcatslug',t3.namege as 'cat',t3.slug as 'catslug',
(SELECT img FROM productimgs WHERE productid=t1.id AND main=1 LIMIT 1) AS mainimg,
(SELECT img FROM options WHERE pid=t1.id AND main=1 LIMIT 1) AS optionimg,
(SELECT price FROM options WHERE pid=t1.id AND main=1 LIMIT 1) AS oprice,
(SELECT pricecard FROM options WHERE pid=t1.id AND main=1 LIMIT 1) AS pricecard,
(SELECT slug FROM productgroups as t2 WHERE t1.groupid=id) as 'gslug' FROM products AS t1
LEFT JOIN categories as t2 ON(t1.category=t2.id)
LEFT JOIN categories as t3 ON(t2.id=t3.pid)
WHERE t1.id>0 AND FIND_IN_SET(,category) ORDER BY cast((SELECT price FROM options WHERE pid=t1.id AND main=1 LIMIT 1) as unsigned) LIMIT 24 OFFSET 0
Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'category) ORDER BY cast((SELECT price FROM options WHERE pid=t1.id AND ...' at line 9 in /home/ilandge/public_html/view/pages/products.php:264 Stack trace: #0 /home/ilandge/public_html/view/pages/products.php(264): mysqli_query() #1 /home/ilandge/public_html/index.php(73): include('/home/ilandge/p...') #2 {main} thrown in /home/ilandge/public_html/view/pages/products.php on line 264