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 (5388,44685,44687,28313,30986,17092,44764,14622,44768,44837,4765,45346,24412,18900,17904,45180,19057,39676,13922,17771,18688,5259,19078,44848,18652,45516,45043,44868,45515,36472,18996,44669,28530,4686,17278,17703,44671,30135,17335,18430,18185,44674,24441,17835,44711,17237,44894,45177,45286,44878,9341,5410,45072,44531,30963,6609,44739,45561,6875,24438,16885,44867,17351,44775,18427,3883,44855,18572,10402,18172)
Unknown column 'np.person' in 'where clause'