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 (44674,44845,44858,44849,30986,34194,45043,17755,45515,13922,18900,44854,44640,44775,44894,44531,22509,17278,44711,28313,44867,4686,45229,17839,8753,18286,44745,18446,45277,24438,44848,30963,45262,45286,17237,17703,6875,9341,18301,44875,6609,18172,17771,13988,45042,39676,17527,16885,44863,14402,45421,17904,30135,17556,17981,24411,45567,28530,6782,44768,24412,5993,44869,44767,17756,18185,18981,17835,5410,45180)
Unknown column 'np.person' in 'where clause'