Categorising search results based on Custom Fields

Instead of $postsTrue->post_count;, try $postsTrue->found_posts; which returns the number of posts queried. $post_count counts all the posts being displayed.

Reference: codex

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