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 (17278,44866,44674,44837,18279,18981,44689,45277,24412,17657,45177,45518,44762,17237,44873,18185,28530,44687,17092,44863,45517,6609,18446,17703,17009,44845,17848,18688,17755,44775,45516,22509,18719,14402,44835,44739,44884,6875,39676,45567,18353,45051,16885,13425,44764,3,18794,45515,44870,4765,13922,43800,44851,44531,17756,44856,44765,6782,44669,32454,28313,18172,17904,17492,44854,18996,18042,44671,18652,45229)
Unknown column 'np.person' in 'where clause'