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 (44775,19057,44836,6862,17114,17492,45177,17771,18172,14402,44689,18427,45180,18648,16885,45043,8753,44894,39676,44674,18894,18688,44884,44863,18279,36472,44762,30135,45517,18446,32454,44767,24441,17839,18981,22509,17527,44868,18996,45072,44875,18042,44858,45567,45229,44867,45051,45042,45262,18301,3,18185,44861,45277,44869,44685,18719,18237,44845,44837,17756,44866,13922,17904,19078,4686,30986,44873,13425,5410)
Unknown column 'np.person' in 'where clause'