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 (19078,45180,17848,18237,24411,44764,17278,24441,17835,37267,44674,44873,44863,17771,36472,44854,3,44875,30135,17839,24412,8753,18652,18572,17527,18353,6609,34194,31354,3883,44766,17092,17556,6782,45072,4765,44865,17755,44767,13988,44768,44870,45277,17657,45516,45346,18172,45177,18794,45518,17335,5993,45517,18430,44835,45262,17114,44848,44861,17601,44869,45515,18427,44884,13,44739,5259,18688,17351,17237)
Unknown column 'np.person' in 'where clause'