WordPress database error: [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 _comment.comment_post_ID IN (5424)
AND _comment.comment_approved IN ("' at line 22]SELECT _comment.comment_ID,
_comment.comment_post_ID,
_comment.comment_author,
_comment.comment_author_email,
_comment.comment_date,
_comment.comment_content,
_comment.comment_approved AS comment_status,
_comment.user_id,
_meta.meta_value as rating,
_course.post_title AS course_title,
_student.display_name
FROM wp_n2y97pnrr0_comments _comment
INNER JOIN wp_n2y97pnrr0_commentmeta _meta
ON _comment.comment_ID = _meta.comment_id
INNER JOIN wp_n2y97pnrr0_posts _course
ON _comment.comment_post_ID=_course.ID
INNER JOIN wp_n2y97pnrr0_users _student
ON _comment.user_id = _student.ID
WHERE _comment.comment_type = 'tutor_course_rating'
AND _meta.meta_key = 'tutor_rating'
AND _comment.user_id=
AND _comment.comment_post_ID IN (5424)
AND _comment.comment_approved IN ("approved")
ORDER BY _comment.comment_ID DESC
LIMIT 0, 150;
New here? Sign Up