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 (45517,30135,18652,45042,18172,17009,44856,18719,44689,28313,45518,45043,44531,31354,17981,8753,44870,13988,45515,17492,13922,17092,18430,45516,18572,44671,22509,45346,44767,17527,6875,44775,44875,44884,44869,44739,44873,45286,4686,44766,34194,18650,44745,39676,44687,17839,5259,18688,6609,44855,17848,44640,44764,14622,45277,14402,19057,10402,37057,5388,13425,18185,17351,45177,18286,44863,44858,16885,44765,5410)
Unknown column 'np.person' in 'where clause'