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='lt_index_non_surgical_breast_enhancement'+'' and chrDomain='' and idfPublisherID='+'22 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 '22 and p.eStatus='LIVE' and l.eStatus='LIVE' and d.eStatus='LIVE' limit 1' at line 1