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 (44858,45346,24438,44856,44867,44764,18688,45043,3,17848,6609,44739,45042,18172,6875,17278,32454,17492,45072,18894,17351,44868,18430,30986,13988,34194,18427,44855,17092,17771,45229,19078,45177,44878,17981,16935,18719,44861,44768,5259,44848,5410,18572,44762,44745,44687,44765,30135,17527,44767,18652,44835,17556,44837,45180,17335,18900,18650,18237,18648,6862,24412,37267,44685,44766,8753,44884,5388,45286,44873)
Unknown column 'np.person' in 'where clause'