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 (44855,45051,18430,30986,45042,17492,43800,45567,45177,44671,17835,17904,45286,16885,30135,37267,18279,18042,45072,44869,45515,45561,44687,18237,44711,17092,14622,44762,6875,44868,44669,24412,18688,17009,37057,18446,44766,3,44867,10402,18185,31354,45043,13922,17237,44848,6609,32454,45346,18286,45421,4765,24441,18572,45262,3883,44767,44856,24438,44866,44854,44775,28530,44745,5259,45516,18794,44764,44875,17556)
Unknown column 'np.person' in 'where clause'