Query a Custom Post Type using SELECT that has ACF fields to compare dates

You can output the exact SQL query generated by WP_Query using

$the_final_query->request

This should give you the starting point you need to customize your SQL

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