Cannot execute query: SELECT c.cat_id, p.pd_id, p.pd_name, p.pd_thumbnail, p.pd_price
FROM tbl_product p, tbl_category c
WHERE pd_special = 1
AND c.cat_id =
AND p.cat_id = c.cat_id
AND pd_status = 1
ORDER BY RAND()
LIMIT 5
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 'AND p.cat_id = c.cat_id
AND pd_status = 1
ORDER BY RAND()
L...' at line 5(1064)