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 (39676,45277,5388,17703,18572,17114,4686,28313,24438,44836,44835,17278,17981,17755,44765,44745,5410,44875,45516,18719,18794,18688,5993,24441,17237,31354,44855,44689,37057,19078,18279,44869,44685,34194,45262,14622,18427,10402,19057,44858,18430,45515,18996,17848,6875,44849,44764,45518,18042,45229,13988,44861,44863,18353,44878,18172,18650,16885,44853,24412,18301,18237,17492,30963,44766,18446,44854,44837,17335,45072)
Unknown column 'np.person' in 'where clause'