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 (44848,45516,17009,17237,18353,36472,28530,17657,44875,18427,6609,44762,17556,44835,45262,28313,45518,17755,6862,34194,17492,17839,44767,3883,44689,22509,44867,37267,44837,44739,18172,5993,44685,45177,18652,18185,45515,45180,18719,8753,18688,18430,44856,45043,13922,19078,44854,17601,3,44764,24411,18286,18650,18648,18572,44866,44669,24412,18981,17335,17756,16935,44865,18301,44870,17771,45286,6782,39676,24438)
Unknown column 'np.person' in 'where clause'