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 (44868,24411,18572,44845,18648,44687,6782,44867,45515,6862,16935,17527,18353,17904,44866,18301,4765,18430,44835,45518,45042,44854,44745,37057,5993,17278,17237,44671,17703,45262,44873,28530,18996,44739,44762,18650,3883,44768,18894,45346,45180,18688,18279,6609,19078,44837,6875,44878,45043,44848,44767,18042,44849,44765,17601,44674,44858,22509,5410,44766,17351,45177,18237,17657,44870,44894,44764,39676,44855,10402)
Unknown column 'np.person' in 'where clause'