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 (28313,4686,44767,18650,24438,18042,44869,44849,37267,43800,44687,18237,14622,18652,10402,8753,44762,44868,45421,17278,18894,14402,44845,17771,44865,45262,9341,17601,18981,18719,18185,45072,44764,17904,45516,24411,6609,45346,18688,17114,44853,3,17527,44858,18301,44739,45561,44674,44894,17756,44836,44851,36472,17657,44640,44711,44854,18427,30135,4765,18279,18430,44775,5993,44848,39676,45277,17492,44861,22509)
Unknown column 'np.person' in 'where clause'