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 (17351,18719,45072,5993,4765,39676,19078,18894,18042,18185,18279,18301,44873,44837,17981,44775,43800,30963,44861,44835,28313,44674,44894,44836,18900,44853,18572,44640,17556,44762,17703,5388,44745,4686,30986,44768,18650,17904,45567,14622,18648,16885,44869,18430,17237,18353,28530,45180,9341,45262,18794,44855,18427,32454,44875,45286,44866,22509,44765,18981,24412,3883,44856,44767,44687,18286,44671,17771,18688,44739)
Unknown column 'np.person' in 'where clause'