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 (37267,14622,44867,24412,17755,44762,17839,18430,45229,44869,18894,18794,13,18996,44836,44835,17492,44863,18172,32454,17335,44689,17278,44745,44873,17771,44865,44856,18042,44875,44845,37057,17527,17556,44768,45051,13425,17601,45072,30135,13988,44671,45262,14402,44851,44669,44766,18981,3,18286,44640,44711,45043,18301,45561,44849,4686,17092,45346,17237,44687,17904,18648,18719,44866,17835,45518,30963,44837,6609)
Unknown column 'np.person' in 'where clause'