why the posts queried from sql is more than those showed on the page?

Autosaves get stored with post_type=inherit and other objects such as menus are also stored in the posts table.

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