You forgot the parenthesis after the "lastInsertId" statement. Try to find errors in yourself instead of blaming the compiler...