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 (44767,45043,44853,5259,18996,44835,44865,17839,44762,44875,45421,45072,44745,45346,18042,45051,17092,45515,18427,44856,18719,14402,17009,37267,45561,17835,17756,44711,18172,17904,17771,44765,19057,45177,44845,39676,18652,44836,44868,44867,44894,17492,45229,37057,17657,45567,30135,13425,19078,44848,13988,17527,44775,44854,6875,5993,17981,13,44531,44858,18900,5410,16885,18446,45518,44764,45042,4765,36472,44861)
Unknown column 'np.person' in 'where clause'