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 (36472,45042,45517,44687,44836,28313,17556,45051,18172,10402,17601,13922,45072,18427,18650,45180,32454,44775,17657,37057,44856,45286,44854,18996,44878,45567,44849,17904,43800,44765,44848,5388,28530,44767,37267,44766,18794,6782,18042,17755,18719,34194,18185,24441,5993,5410,17839,44861,31354,44764,24411,44865,17278,6875,17092,44851,17756,13988,17703,13425,44837,30135,19078,18688,18237,45043,17771,17527,44894,44858)
Unknown column 'np.person' in 'where clause'