Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm getting this in the watchdog on cron run, on D5, PHP 4.3.8, MSQL 4.0.26.
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 uid FROM users WHERE login <> 0 AND uid <> 0 AND status query: DELETE FROM account_reminder WHERE uid IN (SELECT uid FROM users WHERE login <> 0 AND uid <> 0 AND status = 1) in /home/www/foobar.com/includes/database.mysql.inc on line 174.
Any idea what may be causing this? Thanks.
Comments
Comment #1
jaydub CreditAttribution: jaydub commentedYou are using MySQL 4.0 which does not support subselects. That is why the query is failing (as it uses a subselect). I hate to say it but you are really really out of date still running MySQL 4. Even if you just upgrade to 4.1 you will be able to run this. Better yet would be to upgrade to 5.0.
While you are at it, you really really should upgrade PHP to 5.2.x!
Comment #2
AppleBag CreditAttribution: AppleBag commentedThanks, lol, I really wish I could upgrade both, but the guy I rent server space from absolutely refuses to upgrade. Says some php scripts on other sites on the server would break if we did. :/