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 (44878,44865,44739,37057,5388,44868,18794,45177,44869,44867,45042,45277,45518,44745,17009,30135,18981,13,44853,30986,45516,24441,13425,44884,16885,45051,17492,44858,45515,18172,24438,18427,24411,44767,44671,44687,17556,18894,17237,6875,13922,44894,45229,17351,6609,5259,45517,44765,45286,13988,44870,18652,19078,44837,17981,17755,3883,44873,17771,44845,6862,44848,44835,17835,17527,18900,44669,18688,45346,45043)
Unknown column 'np.person' in 'where clause'