pre_get_posts causes Custom Posts appear under ‘Pages’ menu

$qry->is_main_query() will be true on every main query on your site, front end and admin. You need to add another more specific condition to target only the page you’re trying to modify the query on, like is_post_type_archive('trucks').

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