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,22509,18648,17904,30135,44849,44685,18719,44894,45051,44767,45043,17527,5993,44875,17657,17703,44739,44861,18900,45042,44854,44671,45286,44867,17009,31354,13425,44845,44855,17492,24412,45515,5410,44745,44873,18172,18427,30963,18042,18185,34194,44765,28313,44869,6862,17092,30986,18301,10402,44851,17835,44687,17756,45262,44848,44866,8753,16935,5259,18996,18981,44878,18572,44674,45072,24438,45346,44768,16885)
Unknown column 'np.person' in 'where clause'