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 (45517,18648,18894,44767,44861,17351,44894,18650,44849,17981,45567,45346,18172,18430,10402,16935,6609,17755,18279,17492,45177,44739,13425,44878,17556,18794,5259,44687,18688,18286,17601,18652,44745,14622,17835,44884,17237,9341,44851,17335,5410,18042,45518,32454,44867,45286,17904,44875,30963,43800,44858,13,18719,18185,6862,44669,5993,44711,44762,45516,44674,44854,18900,18301,44865,13988,45262,45072,30986,36472)
Unknown column 'np.person' in 'where clause'