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 (44764,5410,28530,45286,17657,44866,44745,13988,34194,18042,14402,44858,6609,6875,18301,17092,44855,18894,36472,44870,44835,31354,45277,44765,45567,45517,44878,6862,17835,3,17601,18353,4686,17527,45229,18286,5993,17237,18172,18996,5388,44868,44762,18900,45042,17981,14622,44674,44894,44687,45346,44669,32454,18279,17904,18650,44869,44861,45262,44711,44853,5259,18430,17556,44851,45177,30963,8753,44837,44689)
Unknown column 'np.person' in 'where clause'