A Database Error Occurred

Error Number: 1064

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 status = 'Like' AND to_user_id IN ( SELECT from_user_id FROM matchs_like' at line 1

SELECT COUNT(id) AS match_count FROM matchs_like WHERE ( from_user_id = AND status = 'Like' AND to_user_id IN ( SELECT from_user_id FROM matchs_like WHERE (to_user_id = AND status = 'Like' )))

Filename: models/Site_model.php

Line Number: 212