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 (37267,13988,45177,8753,45051,18719,5388,3,5410,18185,44764,45516,24412,18301,44870,18981,31354,14402,44837,44711,43800,17839,44854,45262,13425,18237,18427,44861,44687,19057,44865,24411,5993,45346,18648,44739,4686,44640,13,17756,45517,17092,44867,16885,45561,17114,44868,44671,44531,18353,44745,13922,17556,44856,45518,44855,6875,44863,17237,18279,30963,44851,18042,44669,17904,45567,17278,6782,44766,14622)
Unknown column 'np.person' in 'where clause'