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 (13922,45042,17601,31354,44855,45515,45177,44863,30963,44878,18794,45072,17657,17114,10402,44845,44854,44837,4686,44873,44766,44689,28530,3,18042,8753,6609,44739,17527,45277,45516,13988,19057,18185,30135,45262,18172,14402,18301,5388,44869,45180,18237,32454,17755,24412,6782,37267,17237,44765,44856,18688,14622,19078,44858,18894,17771,18996,44745,18650,44835,24411,17335,18286,44851,18430,36472,44836,18427,39676)
Unknown column 'np.person' in 'where clause'