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 (18650,44671,44689,17657,18996,44869,45421,44878,44858,45177,45072,28530,44845,44854,5410,44849,22509,17492,45517,45346,24412,13922,45515,17756,30963,44768,44836,18981,17114,37057,44867,14622,17755,3883,17771,44685,17278,24438,17839,17981,5388,44856,16935,30135,18427,17848,44855,18572,18042,44848,17335,18688,28313,18900,4686,17556,36472,44853,16885,17703,24441,3,18652,18185,44775,17237,45042,44866,18301,31354)
Unknown column 'np.person' in 'where clause'