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 (5388,5993,44856,44878,4686,24412,44671,17771,5259,45518,17848,18650,17351,17278,44775,19078,37057,44866,18042,45516,18353,18981,44767,34194,45177,44870,45421,44848,44873,18301,17009,18648,44739,45229,18996,30986,44765,45180,44835,44711,17114,17335,44845,17492,44875,44868,44640,28313,24411,44853,44865,18719,18185,30963,17601,10402,18427,30135,44861,6875,28530,18430,45277,22509,17527,6609,6782,45286,17839,44685)
Unknown column 'np.person' in 'where clause'