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 u.isActive = 'y'' at line 1
SELECT a.albumsParName,a.albumId FROM tbl_album AS a INNER JOIN tbl_users AS u ON(u.userId=a.userId) WHERE u.userId = AND u.isActive = 'y'