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 (17237,3883,39676,44764,44875,14402,45072,34194,45561,37057,6862,3,44775,45042,45516,45518,44865,44878,18794,44845,44837,44669,17556,44768,4686,17278,18301,44739,30135,44849,44674,16935,17771,44745,44884,44640,5388,44869,17981,31354,18996,45051,5259,30963,44835,5410,44762,32454,18688,30986,45043,45515,45567,17335,19057,44531,17009,44851,44870,44765,45346,18172,44861,43800,10402,44867,17904,5993,45180,9341)
Unknown column 'np.person' in 'where clause'