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 (44848,6609,24412,17601,17237,17771,44869,45180,18446,18794,17092,18572,6875,45177,44687,24411,36472,44835,6782,17657,18900,17351,44856,44870,44765,17527,45229,18894,30135,45421,18172,37267,18427,13,44866,28530,18719,24438,4765,24441,44868,17703,5388,6862,17278,44674,44768,44689,44711,45043,5993,44851,44745,17755,17848,44884,17981,31354,44845,44863,13922,22509,44671,44853,18301,44867,44764,5410,17904,45286)
Unknown column 'np.person' in 'where clause'