Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND IN (18353,45516,18648,17556,17981,18286,17835,5993,45517,5388,45072,17771,44766,44870,44671,18301,18430,13922,19057,18996,18981,43800,14622,14402,44687,4765,17114,16885,18650,24411,45042,44865,44764,44869,44878,45561,45180,44853,17657,44739,44849,39676,17755,44768,18652,17009,45515,6862,45229,44835,44858,36472,3883,45051,4686,44689,32454,45421,18446,17351,44856,18279,6875,45177,44775,17601,44762,45286,28313,13988)
Unknown column 'np.person' in 'where clause'