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 (17771,45177,18427,17981,44878,18237,45518,44848,17237,17278,44856,32454,44685,17114,17601,18648,17556,24441,10402,16885,18172,44851,31354,44745,22509,44868,17351,5388,6782,18996,18446,18042,39676,6875,18719,45277,19057,45180,13922,13425,44835,44669,44837,45346,44855,44861,4686,18688,45516,44775,28530,14622,18981,18430,18572,44674,44711,43800,9341,44875,18794,8753,17848,44762,17335,13,17756,44768,19078,44858)
Unknown column 'np.person' in 'where clause'