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 (44836,30986,44711,18430,32454,45567,18719,44867,45051,6875,45517,24438,36472,18894,18172,45518,6782,44689,44768,44878,44674,44765,37267,3,44855,17601,44853,18996,17009,44851,16885,10402,30963,14402,44685,5993,45277,39676,44640,44863,13988,4686,18446,18688,18652,44868,18900,44854,28313,17835,18427,19057,45421,44869,44848,13,24412,45177,6609,9341,17527,8753,44739,44671,45515,18981,19078,45072,17237,44775)
Unknown column 'np.person' in 'where clause'