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 (16935,34194,18427,44685,45517,44854,17848,44768,5993,45072,17351,44858,45229,18996,22509,10402,17756,17771,44869,5410,45043,6609,17278,43800,44640,17527,17009,24438,30135,44711,44848,45518,44849,44863,44875,44765,44884,18279,3,44865,44867,44861,45346,18286,44853,18688,44687,44845,44674,39676,44745,14402,18042,17981,17335,44855,45516,24411,18430,17703,44836,18353,5388,17492,28313,45177,44866,18719,17237,45180)
Unknown column 'np.person' in 'where clause'