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 (17114,17237,18996,17703,16885,17335,13425,44866,44671,17848,17657,44837,18894,17351,45262,36472,44836,44739,45180,24412,5993,17771,3,17755,28313,13988,9341,44768,19057,18427,44845,44849,44640,17092,45072,24441,18650,44762,30963,24438,17527,44868,13,45043,44867,45177,14622,17556,18719,39676,44873,18353,44869,6875,18172,44689,37267,44863,18301,30986,30135,44870,6782,4765,44765,44767,43800,10402,44745,44855)
Unknown column 'np.person' in 'where clause'