Executed Query -> select sc.*, c.categoryslug, (select count(dff.id) from tbl_dynamic_form_fields as dff inner join tbl_dynamic_form as df on(df.id = dff.formid) where df.catid = sc.catid) as total_cat_questions
from tbl_service_subcategory as sc
inner join tbl_service_category as c on(c.id = sc.catid and c.isactive='y')
where sc.isactive = "y" and sc.isdisplay = "y" limit 0, 8
ERROR:"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db_second_innings.tbl_service_subcategory' doesn't exist: 361"