1286 Unknown storage engine 'InnoDB'
in:
[select count(tp.id) as total FROM tags t,tags_to_product tp where t.id=tp.id]