SELECT * FROM `product` left join category on product.category_id = category.id
This query works fine. But the problem is, both the product table a
use the "AS" keyword like
SELECT product.id AS pid, category.id AS cid ... FROM `product` left join category on product.category_id = category.id