not a valid subject

SQL1 is SELECT id, name, alpha, bold, bodytext, active, meta, intro, plural FROM subjects WHERE name='Democrats And Women' OR plural='Democrats And Women' ORDER BY alpha DESC LIMIT 1
SQL2 is
SQL3 is SELECT image_id from image_data where property_type='strip' AND image_id IN (175233, 174910, 170988, 162635, 151736, 150933, 150393, 150100, 146964, 91255, 89335, 89334, 89320, 89196, 88957, 87191, 86861, 76777, 3209, 2999) 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 ( [175233] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2018 [viewable] => 2018 [property] => 170 ) ) [174910] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2018 [viewable] => 2018 [property] => 58 ) ) [170988] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2018 [viewable] => 2018 [property] => 170 ) ) [162635] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2017 [viewable] => 2017 [property] => 75 ) ) [151736] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2016 [viewable] => 2016 [property] => 72 ) ) [150933] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2016 [viewable] => 2016 [property] => 173 ) ) [150393] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2016 [viewable] => 2016 [property] => 78 ) ) [150100] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2016 [viewable] => 2016 [property] => 55 ) ) [146964] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2016 [viewable] => 2016 [property] => 170 ) ) [91255] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2008 [viewable] => 2008 [property] => 170 ) ) [89335] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2012 [viewable] => 2012 [property] => 111 ) ) [89334] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2012 [viewable] => 2012 [property] => 79 ) ) [89320] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2012 [viewable] => 2012 [property] => 168 ) ) [89196] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2012 [viewable] => 2012 [property] => 99 ) ) [88957] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2012 [viewable] => 2012 [property] => 78 ) ) [87191] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2012 [viewable] => 2012 [property] => 166 ) ) [86861] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2012 [viewable] => 2012 [property] => 152 ) ) [76777] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2012 [viewable] => 2012 [property] => 166 ) ) [3209] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2003 [viewable] => 2003 [property] => 59 ) ) [2999] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2003 [viewable] => 2003 [property] => 59 ) ) ) [total] => 20 [total_found] => 20 [time] => 0.001 [words] => Array ( [democrats] => Array ( [docs] => 2784 [hits] => 3485 ) [and] => Array ( [docs] => 55216 [hits] => 129570 ) [women] => Array ( [docs] => 3708 [hits] => 6868 ) ) )

175233, 174910, 170988, 162635, 151736, 150933, 150393, 150100, 146964, 91255, 89335, 89334, 89320, 89196, 88957, 87191, 86861, 76777, 3209, 2999