Error getting imprint: 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 '? LEFT JOIN imprints_clusters ON iMacroCat=icLookupID WHERE iID=46 AND iWebDispl' at line 1

SQL = SELECT * FROM imprints LEFT JOIN lookups ON lID=iMacroCat and lFieldName="¯macroCategory"¯ LEFT JOIN imprints_clusters ON iMacroCat=icLookupID WHERE iID=46 AND iWebDisplay=1