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 (45051,45516,30986,45561,5388,18981,37267,6875,18446,5410,44766,4686,18301,44745,44845,18427,17703,44868,8753,13922,45567,24438,17756,18572,18042,17601,17351,18719,45043,44854,24412,45277,45262,14622,32454,45180,18648,17092,44767,17657,13,31354,28530,44836,44851,44765,16935,17835,44863,45229,44531,44878,44837,22509,18185,44739,18996,45177,9341,44689,45042,17278,44768,17904,44775,17527,44764,17335,3,44669)
Unknown column 'np.person' in 'where clause'