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 (6782,44766,44866,44868,19057,44894,24441,44764,45518,13988,24411,45042,17839,45517,17756,17009,34194,18652,22509,3883,18981,17703,14622,44745,17657,13,17835,45561,13425,5388,44853,18301,44858,44762,44837,44671,44711,44836,44685,44851,44869,14402,37267,44854,32454,45051,44861,17904,4765,5410,18719,17351,17092,45043,16935,44875,8753,44845,6862,18185,18430,44674,17981,45180,5259,45262,18900,28530,18794,43800)
Unknown column 'np.person' in 'where clause'