Executed Query -> select b.*,c.category_name,sc.sub_category_name,boc.*,u.email,u.experience,u.avg_annual_revenue from tbl_business as b left join tbl_business_category as c on(b.category_id=c.category_id) left join tbl_business_sub_category as sc on(sc.sub_category_id=b.sub_category_id) left join tbl_business_open_close as boc on(boc.tbl_business_id=b.tbl_business_id) left join tbl_users as u on(u.tbl_user_id =b.user_id) where b.tbl_business_id= and boc.tbl_business_id =
ERROR:"SQLSTATE[42000]: Syntax error or access violation: 1064 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 boc.tbl_business_id =' at line 7: 308"