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 (44855,44873,4686,45072,18286,44687,5410,17756,44836,18185,16885,17351,13,44867,44853,18172,6862,44768,44711,45561,44745,18688,44869,18719,18446,44894,44640,18572,45042,18894,45515,45421,19057,44870,24411,45516,17492,44868,44878,44671,39676,9341,44762,17527,44689,17848,14622,17981,44856,30986,17009,17839,10402,18650,44848,45567,44669,44849,18279,17657,28313,34194,44866,18430,44835,45346,14402,4765,3883,17092)
Unknown column 'np.person' in 'where clause'