can not fetch dataYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and lower(fl.franchise_name) like 'mcdonalds%'' at line 5select fl.fbo_id, fl.franchise_name as BusinessName from franchise_lookup fl, franchise_client fc where fc.fbo_id=fl.fbo_id and fc.site_id = and lower(fl.franchise_name) like 'mcdonalds%'