I am trying to compare urls in mysql but the query returns results matching any url.
Here is my query.
SELECT
a.comment_ID,
a.comment_post_ID,
a.comment_content,
a.comment_date_gmt,
a.comment_author_url,
b.post_title, b.ID
FROM
`wp_comments` a,
`wp_posts` b
WHERE
a.comment_post_ID = b.ID
AND
('a.comment_author_email' = '$email'
OR
'a.comment_author_url' = '$url')
AND a.comment_approved = 1
GROUP BY a.comment_ID
ORDER BY a.comment_ID DESC
Thanks!
edit: full query