Getting 404 on child page with pre_get_posts() on custom posts

Getting 404 on child page with pre_get_posts() on custom posts

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