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 (6782,44869,18981,44858,44856,18572,44870,30135,6875,17009,44863,44739,44640,3883,17492,19078,44854,18652,6609,24411,18996,44765,44687,4765,9341,18719,45567,45518,45229,18794,17848,17278,45515,45042,45177,17904,18353,16885,44711,44875,10402,43800,44689,18446,17755,44855,44764,30963,17601,17839,5259,16935,19057,44775,18900,45346,44894,17527,44669,44853,17092,44671,24441,13922,18688,5410,44873,45051,30986,44767)
Unknown column 'np.person' in 'where clause'