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 (45180,44687,44671,44837,44835,18427,17755,17527,17492,17092,45043,45051,18042,45567,9341,18648,45517,17981,44764,18301,44854,44640,45262,13,44848,44531,17657,45177,18446,44865,6782,31354,44875,37267,44765,24441,17351,17904,14402,17556,44849,18353,45346,44775,44870,18185,18894,43800,17839,30135,10402,37057,44856,17335,18794,17771,8753,45515,36472,44845,19057,5410,18279,17278,44836,39676,18286,28313,22509,44851)
Unknown column 'np.person' in 'where clause'