Feedback
[Mon Jan 15 14:29:54 2018] [error] [client 35.226.23.240] PHP Notice: Felkod \tSQL: SELECT offer.* FROM DH_job_offer offer\n\tINNER JOIN DH_jockey jockey ON jockey.id=offer.jockey_id\n\t\tWHERE offer.user_id= \n\t\tAND offer.canceled IS NULL AND offer.offered_by='user' AND offer.jockey_id=19 ORDER BY \n\t\t(jockey.friendly*2+jockey.educational*2+jockey.disciplinary*2+jockey.dressage_skill+jockey.jumping_skill+jockey.racing_skill+jockey.trav_skill) DESC,\n\t\tIF(offer.accepted IS NOT NULL,1,0) ASC, \n\t\tIF(offer.offered_by='jockey',1,0) DESC;\tERROR: 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 'AND offer.canceled IS NULL AND offer.offered_by='user' AND offer.jockey_id=19 OR' at line 4 in /var/www/dreamhorse.se/functions/message.php on line 98
[-Hide comments-]
I think I fixed it.