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 (17981,5259,44687,5993,4765,18794,17092,44764,45346,44835,17703,44855,17237,44669,32454,6875,6862,18996,18430,18279,45042,34194,13922,45515,45262,44836,9341,44765,43800,44685,44739,17278,18688,19078,6782,5410,45561,18650,44853,24412,18185,44848,28530,45051,39676,44894,44865,44837,17114,44849,44762,18981,10402,44858,45229,44856,44674,44875,44531,17527,44689,6609,18652,17009,45043,24411,30135,37057,44869,17771)
Unknown column 'np.person' in 'where clause'