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 (18688,37057,39676,44685,13922,31354,44640,18427,45277,17278,44766,45180,44853,16935,45051,18286,44836,45421,44669,44775,18237,18650,44856,44739,14402,5259,22509,44687,17981,6782,44866,43800,45518,36472,44867,17092,3,44837,44869,14622,44884,5410,9341,17527,44848,18279,44711,17848,44878,18446,24411,18900,18301,18894,45042,45517,18981,44873,44894,17755,44849,44835,18185,45516,34194,30135,24441,17835,24438,18719)
Unknown column 'np.person' in 'where clause'