not a valid subject

SQL1 is SELECT id, name, alpha, bold, bodytext, active, meta, intro, plural FROM subjects WHERE name='Goldman Sachs' OR plural='Goldman Sachs' ORDER BY alpha DESC LIMIT 1
SQL2 is
SQL3 is SELECT image_id from image_data where property_type='strip' AND image_id IN (173846, 153950, 153885, 153698, 152562, 152099, 147006, 142597, 141789, 139754, 139188, 139117, 138129, 138102, 131159, 112807, 103989, 102608, 90476, 89890, 89608, 89005, 81785, 77832, 77795, 56760, 56530, 56461, 55968, 55341, 50742, 48605, 47416, 47039, 46969, 46964, 46906, 46905, 46903, 46894, 46848, 46846, 46776, 46632, 46628, 46603, 46546, 44765, 44301, 40332, 40184, 40076, 39077, 36370, 31357, 28223, 27851) 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 ( [173846] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2018 [viewable] => 2018 [property] => 170 ) ) [153950] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2017 [viewable] => 2017 [property] => 75 ) ) [153885] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2017 [viewable] => 2017 [property] => 170 ) ) [153698] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2017 [viewable] => 2017 [property] => 75 ) ) [152562] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2016 [viewable] => 2016 [property] => 72 ) ) [152099] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2016 [viewable] => 2016 [property] => 75 ) ) [147006] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2016 [viewable] => 2016 [property] => 75 ) ) [142597] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2016 [viewable] => 2016 [property] => 93 ) ) [141789] => Array ( [weight] => 1 [attrs] => Array ( [published] => 2016 [viewable] => 2016 [property] => 156 ) ) [139754] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2016 [viewable] => 2016 [property] => 163 ) ) [139188] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2016 [viewable] => 2016 [property] => 79 ) ) [139117] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2016 [viewable] => 2016 [property] => 170 ) ) [138129] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2016 [viewable] => 2016 [property] => 163 ) ) [138102] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2016 [viewable] => 2016 [property] => 71 ) ) [131159] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2015 [viewable] => 2015 [property] => 79 ) ) [112807] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2014 [viewable] => 2014 [property] => 75 ) ) [103989] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2013 [viewable] => 2013 [property] => 75 ) ) [102608] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2013 [viewable] => 2013 [property] => 71 ) ) [90476] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2009 [viewable] => 2009 [property] => 170 ) ) [89890] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2010 [viewable] => 2010 [property] => 170 ) ) [89608] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2011 [viewable] => 2011 [property] => 170 ) ) [89005] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2011 [viewable] => 2011 [property] => 170 ) ) [81785] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2012 [viewable] => 2012 [property] => 55 ) ) [77832] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2012 [viewable] => 2012 [property] => 156 ) ) [77795] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2012 [viewable] => 2012 [property] => 156 ) ) [56760] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2011 [viewable] => 2011 [property] => 75 ) ) [56530] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2011 [viewable] => 2011 [property] => 156 ) ) [56461] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2011 [viewable] => 2011 [property] => 71 ) ) [55968] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2011 [viewable] => 2011 [property] => 71 ) ) [55341] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2010 [viewable] => 2010 [property] => 75 ) ) [50742] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2010 [viewable] => 2010 [property] => 152 ) ) [48605] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2010 [viewable] => 2010 [property] => 72 ) ) [47416] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2010 [viewable] => 2010 [property] => 99 ) ) [47039] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2010 [viewable] => 2010 [property] => 84 ) ) [46969] => Array ( [weight] => 1 [attrs] => Array ( [published] => 2010 [viewable] => 2010 [property] => 75 ) ) [46964] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2010 [viewable] => 2010 [property] => 99 ) ) [46906] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2010 [viewable] => 2010 [property] => 93 ) ) [46905] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2010 [viewable] => 2010 [property] => 79 ) ) [46903] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2010 [viewable] => 2010 [property] => 71 ) ) [46894] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2010 [viewable] => 2010 [property] => 79 ) ) [46848] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2010 [viewable] => 2010 [property] => 58 ) ) [46846] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2010 [viewable] => 2010 [property] => 75 ) ) [46776] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2010 [viewable] => 2010 [property] => 84 ) ) [46632] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2010 [viewable] => 2010 [property] => 78 ) ) [46628] => Array ( [weight] => 1 [attrs] => Array ( [published] => 2010 [viewable] => 2010 [property] => 111 ) ) [46603] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2010 [viewable] => 2010 [property] => 92 ) ) [46546] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2010 [viewable] => 2010 [property] => 71 ) ) [44765] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2010 [viewable] => 2010 [property] => 79 ) ) [44301] => Array ( [weight] => 1 [attrs] => Array ( [published] => 2010 [viewable] => 2010 [property] => 72 ) ) [40332] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2009 [viewable] => 2009 [property] => 55 ) ) [40184] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2009 [viewable] => 2010 [property] => 75 ) ) [40076] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2009 [viewable] => 2009 [property] => 58 ) ) [39077] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2009 [viewable] => 2013 [property] => 84 ) ) [36370] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2009 [viewable] => 2009 [property] => 58 ) ) [31357] => Array ( [weight] => 1 [attrs] => Array ( [published] => 2009 [viewable] => 2010 [property] => 75 ) ) [28223] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2008 [viewable] => 2008 [property] => 78 ) ) [27851] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2008 [viewable] => 2019 [property] => 99 ) ) ) [total] => 57 [total_found] => 57 [time] => 0.000 [words] => Array ( [goldman] => Array ( [docs] => 68 [hits] => 142 ) [sachs] => Array ( [docs] => 57 [hits] => 121 ) ) )

173846, 153950, 153885, 153698, 152562, 152099, 147006, 142597, 141789, 139754, 139188, 139117, 138129, 138102, 131159, 112807, 103989, 102608, 90476, 89890, 89608, 89005, 81785, 77832, 77795, 56760, 56530, 56461, 55968, 55341, 50742, 48605, 47416, 47039, 46969, 46964, 46906, 46905, 46903, 46894, 46848, 46846, 46776, 46632, 46628, 46603, 46546, 44765, 44301, 40332, 40184, 40076, 39077, 36370, 31357, 28223, 27851