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 (13988,17601,13922,44767,44869,45516,44739,14622,44870,44854,44851,45277,18650,18652,17492,44640,17351,6875,17092,45286,17556,6862,44689,45517,30135,44766,45229,44674,6782,18185,44836,18042,18794,44685,18572,17771,22509,44853,14402,45180,44765,44894,5410,43800,44848,28530,17278,17335,17237,17756,44531,17835,24441,3,9341,44858,18648,17904,44873,36472,8753,5388,24412,45346,32454,24438,24411,45042,45177,4765)
Unknown column 'np.person' in 'where clause'