Unescaped parameter $attachment_query used in $wpdb->get_col("SELECT meta_data FROM $wpdb->nggpictures $attachment_query LIMIT $offset, $max_query")\n$attachment_query assigned unsafely at line 772:\n $attachment_query = 'WHERE pid IN (' . substr( $attachment_query, 0, -1 ) . ')'\n$attachment_query assigned unsafely at line 769:\n $attachment_query .= "'" . array_pop( $attachment_ids ) . "',"\n$attachment_ids assigned unsafely at line 726:\n $attachment_ids = get_option( 'ewww_image_optimizer_bulk_ngg_attachments' )
Unescaped parameter $attachments_in used in $wpdb->get_results("SELECT metas.post_id,metas.meta_key,metas.meta_value,posts.post_mime_type FROM $wpdb->postmeta metas INNER JOIN $wpdb->posts posts ON posts.ID = metas.post_id WHERE (posts.post_mime_type LIKE '%%image%%' OR posts.post_mime_type LIKE '%%pdf%%') AND metas.post_id IN ($attachments_in)")\n$attachments_in assigned unsafely at line 1264:\n $attachments_in = rtrim( $attachments_in, ',' )