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 (45277,18900,45229,13425,45516,24411,28313,4686,45262,37057,44674,18981,17527,18894,17237,44848,17092,10402,6609,14622,24441,5410,39676,17278,13988,45177,13922,18185,44766,45072,32454,44711,24438,44765,45346,44531,18652,17835,17756,30963,18172,44855,44837,43800,44878,45567,17351,44849,44851,18648,45515,45042,17981,18353,18719,44669,44853,17335,44762,17771,28530,17601,22509,17009,18427,5259,18237,45561,45051,17114)
Unknown column 'np.person' in 'where clause'