WordPress database error: [Table 'requests' is marked as crashed and should be repaired]
SELECT
COUNT(CASE WHEN `userIP` = '3.12.148.180' AND TIMESTAMPDIFF(MINUTE, `requested`, NOW()) < 1440 THEN 1 END) AS userlimit,
COUNT(CASE WHEN `songID` = 18474 AND `played` = 0 THEN 1 END) AS already_requested FROM `requests`