SELECT name from tbl_gallery, tbl_gallery_category where 'name' = 'gallery-cat-id';
I have two tables one for category and second for saving images with category name my query is here
Then executing thien shows MySQL returned an empty result set (i.e. zero rows). (Query took 0.0007 seconds.)