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 (18430,45515,22509,5388,44855,18172,16935,44671,18688,45421,45286,30986,16885,18794,44775,18353,45561,6875,44854,18279,30135,44674,17492,18427,17904,44873,17771,17981,18719,37057,17756,37267,44866,18185,18652,17835,44837,44848,44711,28530,18237,17657,44856,44894,18446,8753,17351,43800,45517,39676,45051,45043,13988,10402,45229,4686,44849,44878,4765,44640,44845,45042,45277,18981,45567,5259,24441,44767,6609,44868)
Unknown column 'np.person' in 'where clause'