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,6782,18353,14622,18648,18446,6609,18185,44767,44848,37057,44674,44875,44873,44687,17009,44894,45043,44868,44878,17981,17335,18286,18900,44669,5410,44775,17703,44765,17755,18894,45042,16935,44745,18572,17114,4765,6875,45229,44836,17237,17835,17278,19078,18996,45286,44764,17904,45072,43800,30135,31354,24441,4686,30986,44768,44865,44856,17756,18652,45567,18688,39676,28530,13425,17092,44854,17657,22509,45421)
Unknown column 'np.person' in 'where clause'