Sorry to say it so rude but your code is **§&%$&**! Instead of remove and replace better join single pieces or use "element bit masks"...

To your errors:

Line 8: skip mainTrackQuery.exec();
Line 13,14: Won't remove anything because of the mismatching ","!
Line 19/30: Mustn't the SELECT statement in squares?
Line 24,25: Typo! title not tetle...


Now working?


Regards, Lykurg


EDIT: And if you remove e.g ":title" you can't bind it later!