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 (44873,17527,18650,44878,17278,17703,44689,45051,44870,13,44685,16885,3883,5388,44837,44867,17601,24441,45346,18237,18279,8753,17351,44853,32454,37267,14402,45515,44765,18688,9341,44764,45262,44766,5410,37057,44531,44739,5993,6875,44762,44835,18185,39676,45516,36472,18794,44767,44848,18572,44875,19078,44768,44868,44669,18719,45421,45042,18894,17755,45229,43800,17335,18430,17492,44869,28313,44865,44855,17839)
Unknown column 'np.person' in 'where clause'