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 R_keysname LIKE "%lion%" ORDER BY R_count DESC LIMIT 0, 10' at line 1
in:
[SELECT R_keysname FROM r_key WHERE R_keysname <> 'framed 30 x 40" lion' AND R_keysname LIKE "%framed%" and R_keysname LIKE "%30%" and R_keysname LIKE "%x%" and R_keysname LIKE "%40"%" and R_keysname LIKE "%lion%" ORDER BY R_count DESC LIMIT 0, 10]