No. On so many levels...
Needs at least one space - to separate
"SelectCount(*) FROM tblURL WHERE IP = ip_header;source_ip And Status ='Active'"
Is a string. and as such will be passed though to MySql exactly
as it is. MySql will then throw an error at you, because it does not recognize
as a command (the ';' will terminate the select statement).
Concatenating text strings to make a Sql Satement is a recipe for disaster at the best of times: use parametrized queries instead.