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 (19057,36472,44861,5388,18430,14622,9341,45518,17601,43800,17981,18719,45421,13425,45515,24438,6609,8753,44866,39676,17278,24412,17904,18185,17657,18900,6782,13988,44865,34194,44836,44775,10402,44762,45346,45042,28530,19078,44856,6862,45561,37267,18042,45051,17771,5410,44868,45180,44687,44768,30986,44855,22509,17755,44851,44853,24411,18427,45517,44848,17237,44884,18996,17351,30963,44767,45516,18688,14402,44870)
Unknown column 'np.person' in 'where clause'