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 p.name,p.userId,p.playlistId FROM tbl_playlist AS p INNER JOIN tbl_users AS u ON(u.userId = p.userId) WHERE u.userId = AND u.isActive='y'