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 (6862,44775,17237,17527,45516,44869,45072,44854,44762,19078,17009,44849,45517,14402,44835,45262,37057,44531,44836,44878,5993,44856,44766,17492,17848,44689,17755,36472,37267,17981,34194,17278,22509,18353,24441,24438,4686,30986,44674,24411,13922,14622,43800,18427,39676,18185,18286,44848,44868,17351,10402,44863,44671,45567,18648,4765,18237,44870,18572,45042,44764,17771,44669,44866,44739,32454,44861,44865,17756,18430)
Unknown column 'np.person' in 'where clause'