Custom query on custom table fails

On volume pass single quote in parameter. Now your query is

SELECT * FROM cp WHERE year="1911" AND quarter="4" AND volume="2a" AND page <= '1475' ORDER BY page DESC LIMIT 1   Try this code

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)