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 (44835,3883,17848,18237,44836,18042,6782,44869,45286,17703,13922,44685,44875,44669,44858,17492,45177,6875,45072,30135,44861,17981,5259,17237,36472,45567,18446,44855,18286,44674,44863,18172,18900,44766,45517,18279,18996,44849,18794,44870,17556,45518,24412,18719,44745,24411,32454,5410,45051,8753,44767,45229,30986,28530,17092,34194,37267,18652,45042,44739,18301,30963,45180,18981,18572,16885,4686,24441,17527,44640)
Unknown column 'np.person' in 'where clause'