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 (4765,14622,22509,45518,18900,14402,6609,13425,18652,4686,44687,18981,44867,17556,44669,18427,5410,24441,44674,18237,44869,5388,13,18185,44848,44863,44689,36472,24438,45177,17756,44765,17527,44764,5259,24411,17114,17657,39676,17904,44845,18794,31354,45180,44836,18996,44762,44878,45346,45421,17703,17278,44685,44766,45517,44640,16885,17237,44768,17492,44865,18894,44884,44767,44858,18430,32454,18279,9341,18353)
Unknown column 'np.person' in 'where clause'