not a valid subject

SQL1 is SELECT id, name, alpha, bold, bodytext, active, meta, intro, plural FROM subjects WHERE name='Robert Gates' OR plural='Robert Gates' ORDER BY alpha DESC LIMIT 1
SQL2 is
SQL3 is SELECT image_id from image_data where property_type='strip' AND image_id IN (176993, 176990, 176263, 173766, 173486, 171312, 164726, 164706, 164669, 164640, 164638, 164632, 164631, 164627, 164624, 164621, 164620, 164617, 164615, 164614, 164613, 164612, 164609, 164607, 117583, 106725, 106398, 106380, 106339, 106121, 80164, 59435, 56944, 56199, 49006, 47507, 38744, 38565, 36152, 26089, 24173, 15626, 15578) 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 ( [176993] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2019 [viewable] => 2019 [property] => 1020 ) ) [176990] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2019 [viewable] => 2019 [property] => 75 ) ) [176263] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2019 [viewable] => 2019 [property] => 84 ) ) [173766] => Array ( [weight] => 1 [attrs] => Array ( [published] => 2018 [viewable] => 2018 [property] => 71 ) ) [173486] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2018 [viewable] => 2018 [property] => 58 ) ) [171312] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2018 [viewable] => 2018 [property] => 1020 ) ) [164726] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2017 [viewable] => 2017 [property] => 111 ) ) [164706] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2017 [viewable] => 2017 [property] => 156 ) ) [164669] => Array ( [weight] => 1 [attrs] => Array ( [published] => 2017 [viewable] => 2017 [property] => 173 ) ) [164640] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2017 [viewable] => 2017 [property] => 84 ) ) [164638] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2017 [viewable] => 2017 [property] => 93 ) ) [164632] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2017 [viewable] => 2017 [property] => 162 ) ) [164631] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2017 [viewable] => 2017 [property] => 162 ) ) [164627] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2017 [viewable] => 2017 [property] => 58 ) ) [164624] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2017 [viewable] => 2017 [property] => 75 ) ) [164621] => Array ( [weight] => 1 [attrs] => Array ( [published] => 2017 [viewable] => 2017 [property] => 166 ) ) [164620] => Array ( [weight] => 1 [attrs] => Array ( [published] => 2017 [viewable] => 2017 [property] => 84 ) ) [164617] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2017 [viewable] => 2017 [property] => 92 ) ) [164615] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2017 [viewable] => 2017 [property] => 156 ) ) [164614] => Array ( [weight] => 1 [attrs] => Array ( [published] => 2017 [viewable] => 2017 [property] => 156 ) ) [164613] => Array ( [weight] => 1 [attrs] => Array ( [published] => 2017 [viewable] => 2017 [property] => 156 ) ) [164612] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2017 [viewable] => 2017 [property] => 156 ) ) [164609] => Array ( [weight] => 1 [attrs] => Array ( [published] => 2017 [viewable] => 2017 [property] => 79 ) ) [164607] => Array ( [weight] => 1 [attrs] => Array ( [published] => 2017 [viewable] => 2017 [property] => 62 ) ) [117583] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2014 [viewable] => 2014 [property] => 92 ) ) [106725] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2014 [viewable] => 2014 [property] => 99 ) ) [106398] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2014 [viewable] => 2014 [property] => 162 ) ) [106380] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2014 [viewable] => 2014 [property] => 156 ) ) [106339] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2014 [viewable] => 2014 [property] => 78 ) ) [106121] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2014 [viewable] => 2014 [property] => 79 ) ) [80164] => Array ( [weight] => 1 [attrs] => Array ( [published] => 2012 [viewable] => 2012 [property] => 166 ) ) [59435] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2011 [viewable] => 2011 [property] => 75 ) ) [56944] => Array ( [weight] => 1 [attrs] => Array ( [published] => 2011 [viewable] => 2011 [property] => 79 ) ) [56199] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2011 [viewable] => 2011 [property] => 156 ) ) [49006] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2010 [viewable] => 2010 [property] => 75 ) ) [47507] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2010 [viewable] => 2010 [property] => 75 ) ) [38744] => Array ( [weight] => 1 [attrs] => Array ( [published] => 2009 [viewable] => 2009 [property] => 99 ) ) [38565] => Array ( [weight] => 1 [attrs] => Array ( [published] => 2009 [viewable] => 2009 [property] => 99 ) ) [36152] => Array ( [weight] => 1 [attrs] => Array ( [published] => 2009 [viewable] => 2009 [property] => 75 ) ) [26089] => Array ( [weight] => 1 [attrs] => Array ( [published] => 2006 [viewable] => 2006 [property] => 62 ) ) [24173] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2008 [viewable] => 2008 [property] => 99 ) ) [15626] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2006 [viewable] => 2006 [property] => 82 ) ) [15578] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2006 [viewable] => 2006 [property] => 78 ) ) ) [total] => 43 [total_found] => 43 [time] => 0.000 [words] => Array ( [robert] => Array ( [docs] => 872 [hits] => 1143 ) [gates] => Array ( [docs] => 413 [hits] => 593 ) ) )

176993, 176990, 176263, 173766, 173486, 171312, 164726, 164706, 164669, 164640, 164638, 164632, 164631, 164627, 164624, 164621, 164620, 164617, 164615, 164614, 164613, 164612, 164609, 164607, 117583, 106725, 106398, 106380, 106339, 106121, 80164, 59435, 56944, 56199, 49006, 47507, 38744, 38565, 36152, 26089, 24173, 15626, 15578