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 (37057,17848,45051,44764,44867,6875,44856,45561,28313,18286,18648,13425,44858,18650,10402,31354,44866,18572,18279,18996,16935,17527,44762,6862,44689,6609,45229,45072,16885,44869,24411,44531,45567,44873,30986,45277,22509,44745,14402,45517,45177,13,4686,17114,18185,18172,43800,44711,28530,17835,45042,18981,45180,44851,18042,3,18794,44671,13922,44894,18427,8753,44861,3883,44640,44767,44878,17601,44674,45421)
Unknown column 'np.person' in 'where clause'