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 (24412,14622,44855,44858,17771,44674,45421,44870,44868,44711,17835,17492,44671,45051,5259,18279,17556,18900,34194,17703,44873,18301,45515,6875,24438,44848,45229,17278,44878,18650,18572,44861,44854,44766,44869,44856,17904,18446,44745,44845,17848,37057,18996,44687,17981,6862,18042,45262,18353,44640,45043,18185,44853,5993,37267,3,44837,3883,28530,17237,17527,44765,13988,17839,18427,32454,44689,45180,44762,44768)
Unknown column 'np.person' in 'where clause'