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 (45421,18650,45180,45262,18446,24438,18996,44768,44775,37057,44837,10402,44861,44669,45567,45518,5993,45516,3883,44765,18286,45277,17755,17848,18894,44745,18301,44687,18719,4765,17335,44865,5410,6609,28530,45043,6782,17904,17981,44878,9341,36472,5388,44884,44873,18237,18172,24411,44875,16935,13425,18900,14402,30986,18279,45177,44869,6875,37267,44854,45515,18353,44685,44674,44766,17657,34194,17351,45229,44863)
Unknown column 'np.person' in 'where clause'