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 (45346,28313,45277,17703,18900,18446,6609,30135,44848,24438,45421,18427,17755,44851,10402,18237,44674,17492,17771,45515,17556,5388,16885,3,44745,18894,44775,16935,18279,44853,17335,13922,17527,17756,44685,44858,24412,18430,17092,45051,18286,18648,18996,44856,6862,17278,45286,44870,14622,45180,17351,6782,18719,44868,44669,18185,44867,44671,5410,44845,44739,45262,17657,17904,45516,28530,31354,44878,30986,18572)
Unknown column 'np.person' in 'where clause'