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 (18237,18172,44894,44835,18794,18572,17981,8753,45518,17335,44765,3,5259,18981,14402,45177,18900,45043,39676,28530,17492,4686,18427,44711,44878,28313,18894,17278,44870,32454,44869,44764,45180,16885,44689,44767,45072,34194,5410,44836,17848,18185,43800,45229,44762,45277,24441,17839,44853,45286,44845,44855,17351,18650,31354,5993,44865,6862,17835,44837,45515,44875,17657,44669,45516,36472,18446,3883,44861,30135)
Unknown column 'np.person' in 'where clause'