Error in query: SELECT artist_id, album_id, album_title, friend_id, recommendations.created FROM albums, recommendations WHERE recommendations.album_id = albums.id AND recommendations.user_id= ORDER BY recommendations.created DESC. 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 'ORDER BY recommendations.created DESC' at line 1