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 (44894,44765,17657,17904,45515,18719,18172,9341,17351,30986,45516,14622,6875,18648,28313,18794,18279,16935,17835,45229,17114,18894,44856,45042,5259,17556,3,18652,18042,44875,44766,44674,44739,44854,17755,6782,45043,16885,17092,13988,44767,24411,44855,37267,18981,45177,5993,44835,45517,44671,10402,44845,18286,44869,22509,44640,45051,44768,44861,44685,18427,13922,28530,19057,44849,43800,18688,44873,45277,44870)
Unknown column 'np.person' in 'where clause'