Notice: Error: 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 ') as quantity FROM warehouse w WHERE w.status = 1 ORDER BY w.sort_order' at line 1
Error No: 1064
SELECT *, (SELECT pw.quantity FROM product_warehouse pw WHERE pw.warehouse_id = w.warehouse_id AND pw.product_id = ) as quantity FROM warehouse w WHERE w.status = 1 ORDER BY w.sort_order in /home/solinger/public_html/farmagan.com.ua/system/database/mysqliz.php on line 58