bad use of get_StringArray. More than one row in result! SELECT `songs`.`song_id`, `songs`.`artist_id`, `songs`.`album_id` FROM `songs`, `artists` WHERE `songs`.`song_title_translit`='samovolochka' AND `artists`.`artist_title_translit`='lyubee' AND `songs`.`artist_id`=`artists`.`artist_id`;