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 (45518,4686,44868,45229,44855,18900,17839,18353,44766,44687,13425,44775,44849,44739,30135,44861,44768,17835,18652,18794,44873,44858,45262,44869,3883,19078,28530,5993,45051,18430,44845,17703,45516,37267,30986,45517,44764,44866,44531,44894,19057,17601,13922,18650,8753,43800,5410,44674,17755,24411,17351,24441,44867,44685,17756,44767,45561,14622,45421,44854,5388,18996,18572,4765,44837,6609,18981,6782,44836,17009)
Unknown column 'np.person' in 'where clause'