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 (44671,44865,8753,17351,18301,44878,44870,45515,44855,45567,17009,17756,44765,44837,17703,44764,44745,19078,45180,6782,45561,44766,18650,44869,30963,44689,44775,13425,18648,45043,18172,9341,18719,16935,6609,17835,24412,3883,43800,5410,13988,24438,45229,4765,44836,44835,44873,44866,36472,44768,44767,13,44884,44851,5993,6862,45516,45051,45277,18042,45072,44739,4686,28313,17527,18996,44894,44856,18446,6875)
Unknown column 'np.person' in 'where clause'