There is an error on the SQL command.

SQL:
select pub_id from pubs where url_name='2228-The-Dew-Drop-Inn'

Error:
Access denied for user 'apache'@'localhost' (using password: NO)