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 (17527,44851,44671,30135,44853,44861,44685,17703,44854,44767,45042,30986,44894,44856,17278,45561,44739,8753,45515,17492,18794,24438,44711,17755,13922,19057,18900,18996,13988,24441,44855,18981,17848,44766,4686,18446,44869,17756,24411,6862,17771,9341,18719,44835,44768,17009,17835,44873,5993,17351,45180,18652,16885,4765,13,18648,18650,34194,18353,17237,17601,44764,28530,44870,30963,45277,10402,44687,45262,44689)
Unknown column 'np.person' in 'where clause'