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 (18688,45518,44848,45561,45277,8753,44745,44739,5388,45177,14402,24441,3883,18353,44687,18185,45043,44711,44768,5993,44836,22509,18446,44854,17351,44866,18042,28313,18237,9341,44685,18894,44868,17237,44861,17703,17755,17904,31354,44856,44531,45346,45180,18430,45051,14622,45262,18652,17335,16885,13,45515,4686,44640,17657,45517,44858,17114,44766,45072,17981,45516,6862,6875,44855,17492,44894,17556,28530,44671)
Unknown column 'np.person' in 'where clause'