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 (6862,34194,13922,45518,9341,44875,17278,45346,18996,44848,18185,45567,18652,6782,4765,45517,3883,24438,44835,6609,45180,31354,16935,30135,45072,44858,44854,44768,18650,17237,44640,13988,18981,44867,17556,45177,44836,18794,44767,44689,17771,10402,17527,45042,44855,17848,45051,17981,44669,45515,19057,44865,18427,24412,17351,18430,44845,45043,17904,17601,17492,14402,44866,18446,44764,44531,5993,19078,28530,44894)
Unknown column 'np.person' in 'where clause'