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 (4686,5388,18353,24412,44873,45177,18301,45277,44764,30986,45072,18688,18981,44853,44775,44845,44856,6862,17657,16885,6609,30963,45517,18042,44837,45518,44861,37057,4765,44531,44766,5259,44685,44855,45043,18572,44669,44711,36472,44765,44768,44739,44884,44687,44835,45229,45180,17981,17755,45515,45262,39676,44866,14402,44848,44865,6782,44767,17278,17703,13425,44863,28530,18652,45051,31354,45567,24441,18427,3883)
Unknown column 'np.person' in 'where clause'