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 (17657,18353,17839,45177,45286,44869,44674,3883,24412,17092,44836,44768,18688,45277,24411,13988,45567,28530,44878,24438,44875,30135,45072,13,44873,18446,18572,44765,18301,9341,44863,17556,4686,17492,17335,3,45515,44854,18981,17756,4765,14622,44711,44867,17703,17601,18237,17114,18042,43800,44837,17848,8753,44868,44775,44866,6862,18719,16935,17278,18996,17755,44884,31354,16885,28313,18652,44739,18794,37057)
Unknown column 'np.person' in 'where clause'