by HarvardX
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND wp_comments.comment_type = 'tutor_q_and_a' 
					AND meta_key = 'tutor_qu...' at line 16]SELECT wp_comments.comment_ID, 
					wp_comments.comment_post_ID, 
					wp_comments.comment_author, 
					wp_comments.comment_date, 
					wp_comments.comment_date_gmt, 
					wp_comments.comment_content, 
					wp_comments.user_id, 
					wp_commentmeta.meta_value as question_title, 
					wp_users.display_name 
			FROM  	wp_comments 
						INNER JOIN wp_commentmeta
								ON wp_comments.comment_ID = wp_commentmeta.comment_id 
						INNER JOIN wp_users
								ON wp_comments.user_id = wp_users.ID 
			WHERE 	wp_comments.comment_post_ID = 11 AND wp_comments.user_id =  
					AND wp_comments.comment_type = 'tutor_q_and_a' 
					AND meta_key = 'tutor_question_title' 
			ORDER BY comment_ID DESC 
			LIMIT 0, 20;
			
Be the first to ask your question! You’ll be able to add details in the next step.