Jump to content

mysql error help


proctk

Recommended Posts

SQL Error: SELECT buddylink.buddy_id, buddylink.owner_id, privacy.email_birthday, privacy.user_id, buddylink.mailyear, FROM buddylink LEFT JOIN privacy ON buddylink.owner_id = privacy.user_id WHERE buddylink.status = '2' AND buddylink.mailyear != YEAR(CURDATE()) AND privacy.email_birthday = '0'
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 'FROM buddylink LEFT JOIN privacy ON buddylink.owner_id = privacy.user_id WHERE b' at line 1

Link to comment
https://forums.phpfreaks.com/topic/92217-mysql-error-help/
Share on other sites

Hi I have been staring at this one for a while to. Any ideas whats wrong

 

SQL Error: SELECT * (DAYOFYEAR(CURDATE()+INTERVAL 15 day) - DAYOFYEAR(DOB)) AS diff FROM users HAVING diff BETWEEN 1 AND 15 AND user_id = '63'
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 '(DAYOFYEAR(CURDATE()+INTERVAL 15 day) - DAYOFYEAR(DOB)) AS diff FROM users HAVIN' at line 1

Link to comment
https://forums.phpfreaks.com/topic/92217-mysql-error-help/#findComment-472426
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.