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 (44669,44851,31354,44869,17756,17237,18572,18427,6782,17839,17527,45567,44671,17755,14622,30986,45051,13,44854,44875,19057,6609,16885,44861,44837,44775,18981,44764,43800,17835,44856,9341,24411,5259,45517,45518,18688,44866,44867,44768,28313,44640,44674,18894,17981,4686,13988,36472,18648,44858,18286,14402,18353,44766,45286,17848,16935,44878,37267,18900,44835,45515,17657,37057,44685,44739,18237,17601,10402,44873)
Unknown column 'np.person' in 'where clause'