not a valid subject

SQL1 is SELECT id, name, alpha, bold, bodytext, active, meta, intro, plural FROM subjects WHERE name='Congress And Iraq' OR plural='Congress And Iraq' ORDER BY alpha DESC LIMIT 1
SQL2 is
SQL3 is SELECT image_id from image_data where property_type='strip' AND image_id IN (164366, 123061, 101533, 81775, 61962, 42397, 25980, 23825, 22910, 22866, 22846, 21791, 20677, 20663, 18898, 18607, 18594, 18028, 17410, 17225, 17216, 17139, 16832, 16153, 16124, 16028, 14896, 14554, 13255, 12669, 12474, 12278, 12271, 12042, 11340, 11265, 11111, 9055, 7435, 6764, 3104) LIMIT 1

Array ( [error] => [warning] => [status] => 0 [fields] => Array ( [0] => keywords [1] => participants [2] => setting [3] => caption ) [attrs] => Array ( [published] => 2 [viewable] => 2 [property] => 1 ) [matches] => Array ( [164366] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2017 [viewable] => 2017 [property] => 75 ) ) [123061] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2015 [viewable] => 2015 [property] => 93 ) ) [101533] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2013 [viewable] => 2013 [property] => 71 ) ) [81775] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2012 [viewable] => 2012 [property] => 71 ) ) [61962] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2011 [viewable] => 2011 [property] => 162 ) ) [42397] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2009 [viewable] => 2009 [property] => 75 ) ) [25980] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2007 [viewable] => 2007 [property] => 62 ) ) [23825] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2008 [viewable] => 2008 [property] => 99 ) ) [22910] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2008 [viewable] => 2008 [property] => 84 ) ) [22866] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2008 [viewable] => 2008 [property] => 84 ) ) [22846] => Array ( [weight] => 4 [attrs] => Array ( [published] => 2008 [viewable] => 2008 [property] => 82 ) ) [21791] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2008 [viewable] => 2008 [property] => 71 ) ) [20677] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2003 [viewable] => 2003 [property] => 62 ) ) [20663] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2007 [viewable] => 2007 [property] => 75 ) ) [18898] => Array ( [weight] => 4 [attrs] => Array ( [published] => 2007 [viewable] => 2008 [property] => 75 ) ) [18607] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2007 [viewable] => 2007 [property] => 75 ) ) [18594] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2007 [viewable] => 2007 [property] => 75 ) ) [18028] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2007 [viewable] => 2007 [property] => 79 ) ) [17410] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2003 [viewable] => 2009 [property] => 72 ) ) [17225] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2007 [viewable] => 2007 [property] => 84 ) ) [17216] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2007 [viewable] => 2007 [property] => 92 ) ) [17139] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2007 [viewable] => 2007 [property] => 71 ) ) [16832] => Array ( [weight] => 1 [attrs] => Array ( [published] => 2007 [viewable] => 2007 [property] => 84 ) ) [16153] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2007 [viewable] => 2007 [property] => 58 ) ) [16124] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2007 [viewable] => 2007 [property] => 75 ) ) [16028] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2007 [viewable] => 2007 [property] => 79 ) ) [14896] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2006 [viewable] => 2006 [property] => 58 ) ) [14554] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2006 [viewable] => 2006 [property] => 75 ) ) [13255] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2006 [viewable] => 2006 [property] => 75 ) ) [12669] => Array ( [weight] => 1 [attrs] => Array ( [published] => 2006 [viewable] => 2006 [property] => 71 ) ) [12474] => Array ( [weight] => 1 [attrs] => Array ( [published] => 2003 [viewable] => 2008 [property] => 72 ) ) [12278] => Array ( [weight] => 1 [attrs] => Array ( [published] => 2005 [viewable] => 2005 [property] => 75 ) ) [12271] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2005 [viewable] => 2005 [property] => 58 ) ) [12042] => Array ( [weight] => 1 [attrs] => Array ( [published] => 2005 [viewable] => 2005 [property] => 71 ) ) [11340] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2005 [viewable] => 2005 [property] => 62 ) ) [11265] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2005 [viewable] => 2005 [property] => 79 ) ) [11111] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2005 [viewable] => 2008 [property] => 82 ) ) [9055] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2004 [viewable] => 2004 [property] => 74 ) ) [7435] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2004 [viewable] => 2004 [property] => 71 ) ) [6764] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2004 [viewable] => 2004 [property] => 74 ) ) [3104] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2003 [viewable] => 2003 [property] => 59 ) ) ) [total] => 41 [total_found] => 41 [time] => 0.001 [words] => Array ( [congress] => Array ( [docs] => 3721 [hits] => 6002 ) [and] => Array ( [docs] => 53671 [hits] => 125047 ) [iraq] => Array ( [docs] => 2686 [hits] => 7047 ) ) )

164366, 123061, 101533, 81775, 61962, 42397, 25980, 23825, 22910, 22866, 22846, 21791, 20677, 20663, 18898, 18607, 18594, 18028, 17410, 17225, 17216, 17139, 16832, 16153, 16124, 16028, 14896, 14554, 13255, 12669, 12474, 12278, 12271, 12042, 11340, 11265, 11111, 9055, 7435, 6764, 3104