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`='dzhin-i-tonik' AND `artists`.`artist_title_translit`='zimove-zverej' AND `songs`.`artist_id`=`artists`.`artist_id`;