OK... This is driving me crazy. I know I can do two seperate queries to accoomplish this but I should not have to.
I am trying to check the `MPAConfig` file to see if a record exists.
(If that record exists then the current user has admin rights in the program.)
If that record exists then go ahead and delete some records in a different table.
Code:
DELETE
FROM
`MPApagers`
WHERE
1 = ( SELECT 1
FROM
`MPAConfig`
WHERE
`Setting` = 'ProfileAdmins'
AND
`Par4` LIKE BINARY '%Z%' )
AND
`EMPNUM` = '9902'
MySQL responds:
#1064 - 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 'SELECT 1
FROM
`MPAConfig`
WHERE
`Setting`