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 '6%" and R_keysname LIKE "%7mm%" and R_keysname LIKE "%loose%" and R_keysname LIK' at line 1
in:
[SELECT R_keysname FROM r_key WHERE R_keysname <> '17.5 19"6 7mm loose beads' AND R_keysname LIKE "%17.5%" and R_keysname LIKE "%19"6%" and R_keysname LIKE "%7mm%" and R_keysname LIKE "%loose%" and R_keysname LIKE "%beads%" ORDER BY R_count DESC LIMIT 0, 10]