Add support attachment post type

In select query need - inherit - status