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 (24412,45043,3883,17492,44869,6875,44858,44739,18996,18688,18652,13425,45042,44853,17556,18900,4686,18353,17527,44866,24441,17755,18185,13988,3,8753,45518,44868,44640,44875,17835,6609,44848,17848,18794,45051,18427,18572,44837,5993,44855,44835,18719,44765,45177,31354,17904,36472,17839,44854,44867,44849,22509,13,13922,18430,44884,44863,44851,37057,44873,44775,44674,17756,45421,17092,44894,44764,43800,45180)
Unknown column 'np.person' in 'where clause'