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 (44775,5410,37267,44764,44884,44858,43800,19057,28530,44855,17755,44853,3883,18900,17237,44669,17527,44837,45421,5388,30135,14622,17703,45072,24411,6875,45277,44711,24438,44866,4686,44856,44869,44768,44854,18042,18301,36472,44848,44835,45262,18648,44868,30963,30986,17601,44687,45518,34194,6609,44836,17114,18894,44878,44861,18688,18427,18996,44767,13,17848,45561,44875,44762,32454,17839,28313,45346,17351,18172)
Unknown column 'np.person' in 'where clause'