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 (44848,18301,44894,3,17492,30963,44775,18900,19078,44674,44884,44853,4765,45518,17527,44856,43800,17756,18794,18172,17601,18279,18237,18652,28530,44689,6609,45515,6782,44861,44878,18719,17092,22509,3883,14622,24441,45277,18042,17839,17755,17351,44868,18185,13425,17009,44762,17335,44671,18572,44849,45346,18981,45567,44837,45561,17981,45051,44739,4686,8753,44766,45286,44863,45180,45229,18648,44745,44869,9341)
Unknown column 'np.person' in 'where clause'