Invalid query "select * from ref_code where code=''": Access denied for user 'apache'@'localhost' (using password: NO)