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 (37057,18446,45286,45043,34194,18042,45517,44767,3883,44867,44868,17904,16935,45515,18996,31354,44894,17839,44869,17114,17657,18427,17756,44835,14622,44768,32454,44856,18572,17835,44858,18286,18353,18900,44836,19078,18279,45567,28530,44853,44855,45177,44870,44878,44775,43800,17351,44685,18185,44854,17981,6609,17492,5259,44866,3,5993,13988,17009,24441,44845,44764,36472,45277,19057,18894,39676,17601,13922,9341)
Unknown column 'np.person' in 'where clause'