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 (16885,44745,17278,18430,17835,44768,44851,17237,30986,44685,44875,44674,45042,36472,44765,4765,44531,18996,14622,8753,44687,44767,17092,30963,6609,44762,45277,17756,45072,45517,44739,13425,17335,37057,4686,44878,45515,24411,45043,45516,9341,44870,43800,44867,39676,18650,18688,6862,44848,44855,19078,44711,24438,17839,17114,44873,44868,18286,3883,44863,17981,32454,16935,18652,44837,44854,45180,13,17904,34194)
Unknown column 'np.person' in 'where clause'