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 (18279,44845,24441,31354,18719,17835,5259,44674,18446,34194,44765,45567,44775,17237,18430,18185,17351,44867,44640,4686,45177,44762,45517,44687,43800,30963,36472,17278,45346,17839,44866,18648,45515,44768,18572,28530,17009,19078,3883,45042,44869,24438,9341,3,44739,44836,18237,44861,14622,44689,17755,44767,44873,18042,44669,44856,44870,30986,18996,10402,37267,45043,17114,5993,18427,44531,30135,45286,18794,24411)
Unknown column 'np.person' in 'where clause'