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,37057,44687,44685,6782,17771,17755,44853,17009,18894,19057,45229,4686,44866,18981,18650,4765,17335,44854,22509,45072,44870,44640,18172,45051,44858,30135,44878,24411,44845,32454,17527,34194,18301,45042,18794,18719,18900,45043,45180,37267,17601,45517,6609,45518,13922,44775,28530,18430,17657,14622,43800,39676,45277,44861,18427,6862,17848,44851,10402,18652,44739,17092,45561,44863,44856,3883,45346,18185,44855)
Unknown column 'np.person' in 'where clause'