select idsLinkID, d.idsDomainID as pubdid from tbcLink l inner join tbcDomain d on l.idfDomainID=idsDomainID inner join tbcPublisher p on idfPublisherID=idsPublisherID where chrLink='te_index_searchengine'+'' and chrDomain='' and idfPublisherID='+'28 and p.eStatus='LIVE' and l.eStatus='LIVE' and d.eStatus='LIVE' limit 1You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '28 and p.eStatus='LIVE' and l.eStatus='LIVE' and d.eStatus='LIVE' limit 1' at line 1