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 (18981,44894,45518,13425,44854,17703,44687,17601,24412,18042,44531,44767,16885,44845,9341,18185,10402,17848,18996,5410,45515,13988,13922,17904,17278,45286,44853,44867,5388,18237,17839,17092,45517,37267,44764,5993,17335,17835,44766,30135,14402,44685,28313,18446,17657,37057,44861,44858,44865,44671,45072,44849,44745,17237,45346,45229,18688,18427,18572,45262,36472,44866,44689,17771,17527,18301,44848,32454,6609,34194)
Unknown column 'np.person' in 'where clause'