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 (10402,17771,44739,45043,5993,19057,18446,6609,18185,44711,30986,24412,36472,3,43800,44835,44640,3883,5410,44875,17556,45277,34194,16885,17527,44762,32454,24411,45516,5259,30963,44766,18652,44866,44865,17335,44764,31354,44775,45518,45346,44848,30135,17601,44853,37267,44854,44869,28530,18996,8753,18648,13425,45042,18719,14402,17092,18237,4765,44671,17351,44849,44863,28313,18650,44884,17492,44858,17237,44767)
Unknown column 'np.person' in 'where clause'