in reply to Re^2: Help my syntaxin thread Help my syntax
That line should be:
The second WHERE is an error, per my reading of the MySQL documentation.