たぶんこんな感じ。
getattachment.sql
SELECT p.*FROM wp_users u, wp_posts pWHERE u.ID = p.post_author AND u.user_nicename = 'admin' AND p.post_mime_type LIKE 'image/%' AND p.post_type = 'attachment';
細かいところは、それぞれ読み替えて下さい。
たぶんこんな感じ。
SELECT p.*FROM wp_users u, wp_posts pWHERE u.ID = p.post_author AND u.user_nicename = 'admin' AND p.post_mime_type LIKE 'image/%' AND p.post_type = 'attachment';
細かいところは、それぞれ読み替えて下さい。