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 (44775,16935,32454,17703,45043,18172,44767,44745,45517,16885,44835,44878,18353,45346,18430,4765,18894,44845,19057,18427,44869,44762,18996,34194,37267,18648,45516,44766,44685,45561,45262,6782,13988,44674,18301,17835,17848,45518,44768,45277,28530,44873,18650,18572,44894,18185,18794,18900,17335,45042,44640,17237,18286,45051,6862,17771,18446,17981,45515,44884,44764,3883,45072,5259,44837,19078,44849,17114,44875,17092)
Unknown column 'np.person' in 'where clause'