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 (17657,18900,5259,18172,18279,16935,22509,17848,45518,6782,45072,17351,18301,44767,24438,44640,18430,44849,28530,17114,45515,30986,17092,45262,44689,17237,39676,18981,14622,10402,44856,17335,44863,45043,44894,18237,45277,17756,44867,44762,44739,44674,44745,18719,5388,44711,18185,44858,24412,17527,17835,5410,18688,17601,44869,45567,44671,6875,19078,37267,44855,44835,45516,44685,13425,44873,44868,18572,44768,45346)
Unknown column 'np.person' in 'where clause'