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 (13988,18648,28313,45262,18286,16935,44836,30986,13922,18719,45229,18894,44739,44768,34194,44866,44835,5410,17703,44851,45072,44856,44762,44711,44873,18042,43800,17839,17009,44858,45180,18353,16885,45518,44674,44765,6782,45421,3,18981,45515,45286,44767,44861,17755,44868,18430,24441,17981,17278,18279,45561,17756,18794,18572,30963,6609,44869,3883,17527,30135,18688,18650,14402,17492,17237,24411,44837,17556,37057)
Unknown column 'np.person' in 'where clause'