Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id 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'