Не возможно сделать запрос к базе № '0'

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 mb.`noneed`=0 order by mb.`tovmark`' at line 8