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 (44764,28313,18185,44849,18652,17556,44674,44768,17755,4686,18286,10402,45346,45421,45180,14402,18996,18446,30135,44853,44836,18427,45229,32454,19057,44848,39676,44870,17092,17835,44640,18353,6782,18648,36472,44837,24412,17703,28530,22509,5388,45516,3883,5410,30963,8753,44855,44868,17527,24411,44739,16885,44856,44745,18042,44884,44865,17848,18981,17657,44531,34194,44711,5259,44869,5993,37057,6875,44894,18894)
Unknown column 'np.person' in 'where clause'