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 (18301,44835,28313,44671,45180,19057,44745,44863,17771,45516,13988,44689,37057,45072,44856,18286,17527,18353,45346,13425,44711,5259,44849,44858,5410,44837,43800,45286,17351,45518,17601,44848,4686,44775,6609,18185,45277,24438,44762,17981,10402,18900,18650,44878,44851,45421,34194,18430,6862,44640,17835,45177,17335,17755,18427,36472,18172,44861,18446,44669,44845,17009,45561,44870,13,17556,24441,9341,44884,18572)
Unknown column 'np.person' in 'where clause'