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 's%Song%' OR
Request.name LIKE '%Saya's%Song%' OR
Request.anime LIKE '%Saya'' at line 2
Original SQL:
SELECT COUNT(*) FROM Request WHERE `status` = 'Pending' AND (
Request.song LIKE '%Saya's%Song%' OR
Request.name LIKE '%Saya's%Song%' OR
Request.anime LIKE '%Saya's%Song%' OR
Request.artist LIKE '%Saya's%Song%' OR
Request.type LIKE '%Saya's%Song%'
)