You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.$homelink.'.htm' && builder_id ='239978'' at line 1/home/indianyp/indianyellowpages.com/htdocs/bizpage/dynamiccatalog/index.php--688 IN FILE /home/indianyp/indianyellowpages.com/htdocs/bizpage/dynamiccatalog/index.php -

select project_id from project_tbl where file_nm='pckg-'.$homelink.'.htm' && builder_id ='239978'

[TEP STOP]