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 (17278,44762,24438,24441,17981,45277,18688,18286,44674,44837,44867,18650,45043,44854,44531,17756,45286,14402,6875,18894,22509,10402,36472,44884,4686,45517,6609,44894,44745,45072,4765,17755,30963,16935,19078,45346,44765,17839,44856,45421,18353,44858,45561,5388,44855,17657,28530,18996,44685,18430,44766,18719,44869,17335,16885,44870,45518,45516,45180,17771,17835,45515,17703,44878,13922,34194,37267,17009,43800,44873)
Unknown column 'np.person' in 'where clause'