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 (18794,18652,13425,17092,18237,5388,17601,6782,19057,45072,44766,17848,13988,44765,6875,17335,3,45346,16885,44867,17527,39676,17756,44835,18172,18719,44853,32454,13922,14402,44878,9341,18894,44875,44855,44863,44851,44884,44531,17839,34194,18446,44762,44865,44685,44870,31354,17237,36472,18688,44689,44711,30986,45180,44674,44836,44873,44869,18572,45262,3883,44739,18981,44856,18648,45042,18279,18185,44687,17351)
Unknown column 'np.person' in 'where clause'