error: SELECT c.*, cat.cat_name, s.style_name, t.tempo_name FROM cues c, categories cat, styles s, tempos t WHERE cue_id = '' LibNode[count].getAttribute(' AND c.cat_id = cat.cat_id AND c.style_id = s.style_id LIMIT 1
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 'LibNode[count].getAttribute(' AND c.cat_id = cat.cat_id AND c.style_id = s.style' at line 1