I have one table of oc_category_description where columns are :
and other table oc_category where columns are :
Try this below script-
SELECT oc_category.category_id,
oc_category.image,
oc_category.parent_id,
oc_category_description.name
FROM oc_category
INNER JOIN oc_category_description
ON oc_category.category_id = oc_category_description.category_id
WHERE oc_category.parent_id = 0
ORDER BY oc_category.category_id ASC
Try this
select t1.category_id,t1.image, t1.parent_id, t2.name from oc_category as t1 left join oc_category_discription as t2 on t1.category_id = t2.category_id where t1. parent_id = 0 order by id t1.category_id asc;