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,19078,16885,18185,45180,37057,44884,44868,6875,44851,44685,18981,44854,16935,45277,17756,44687,6862,6609,17703,44836,13988,3883,17657,44845,17237,44849,44835,36472,14402,24412,30963,44853,18688,10402,44894,44856,18719,45262,44671,18172,45517,24441,44875,17848,44767,34194,14622,18237,18286,44739,18650,32454,17601,44711,45516,17556,44870,4765,45072,44669,13,17335,18894,45515,17839,18301,44867,30986,13922)
Unknown column 'np.person' in 'where clause'