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 (45180,4686,44766,44835,17009,44687,45516,17755,18650,44767,44739,6609,30135,39676,17703,44858,18981,37057,18900,45262,44873,17237,44868,13,45229,45051,17981,45518,18353,4765,44894,17601,30986,44745,44837,9341,17527,17904,17492,44671,44669,44674,13988,18185,24438,17756,44531,18719,24441,44775,34194,14402,19078,45517,17848,18301,44685,44863,18430,44854,18652,17835,44853,16885,18279,6782,16935,18446,17278,45042)
Unknown column 'np.person' in 'where clause'