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 (44863,37057,17092,17278,44858,45177,44711,4686,45515,17657,45561,17237,44894,44878,5410,31354,24438,32454,43800,44848,18446,45051,16935,5259,24412,17601,44671,17351,16885,44868,28313,18172,18996,44875,34194,44669,44851,45262,45518,17981,14622,44867,44775,45517,17114,30963,6782,17556,44835,17839,19057,18572,6875,13,37267,44687,44869,13425,45180,17755,44861,44873,18981,44855,44866,44745,18301,44767,18185,44884)
Unknown column 'np.person' in 'where clause'