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 (44867,6782,44762,45567,45286,17904,30963,44739,6609,13988,3,17601,18572,45516,18430,28313,13425,45515,44865,44875,44765,45051,45517,17981,18981,45177,44669,17492,17114,17755,44870,44894,13,44849,18279,37267,45072,5259,39676,44766,17527,18719,18900,5410,44768,44856,18237,44869,17657,24438,18427,17278,44745,24411,44640,17351,18446,44866,45421,18286,18301,22509,44873,17848,18996,44775,18650,45180,18894,17771)
Unknown column 'np.person' in 'where clause'