I can't seem to delete where using a Inner Join.
I get the following error:
Do I have bad syntax?
Code:
DELETE
FROM Stats INNER JOIN ListingParameter ON Stats.listingFk = ListingParameter.listingFk
WHERE Stats.listingFk = <cfqueryparam value='#FORM.ad#' cfsqltype='cf_sql_integer'>
AND ListingParameter.status = '0'
I get the following error:
Syntax error or access violation: 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 'INNER JOIN ListingParameter ON Stats.listingFk = ListingParameter.listingFk ' at line 2
Do I have bad syntax?