Fatal error: Uncaught exception 'Exception' with message 'Problem preparing query (
SELECT COUNT(sound.id) AS `count`
FROM sound_genre
LEFT JOIN sound ON sound.id = sound_genre.sound_id
WHERE sound_genre.genre_id = AND sound.id IS NOT NULL
) You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND sound.id IS NOT NULL' at line 4' in /var/www/www-root/data/www/kzmp3.kz/core/classes/MysqliDb.class.php:1482
Stack trace:
#0 /var/www/www-root/data/www/kzmp3.kz/core/classes/MysqliDb.class.php(382): MysqliDb->_prepareQuery()
#1 /var/www/www-root/data/www/kzmp3.kz/core/models/Start.php(115): MysqliDb->rawQuery('\n SELECT...')
#2 /var/www/www-root/data/www/kzmp3.kz/core/controllers/genres.php(11): getStuctSound(Object(MysqliDb), 'genre', 'sound_genre', 'genres', 'genre_id')
#3 /var/www/www-root/data/www/kzmp3.kz/index.php(58): require_once('/var/www/www-ro...')
#4 {main}
thrown in /var/www/www-root/data/www/kzmp3.kz/core/classes/MysqliDb.class.php on line 1482