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 (24411,44869,44671,6609,14622,45286,17009,44768,18894,30963,45518,44884,44766,44868,18688,44858,45051,44875,37267,44878,44685,28530,17335,44711,44867,18172,44853,18430,8753,44739,18648,45262,10402,44870,18652,24412,18042,44762,34194,44849,17848,18279,18650,5388,17351,44855,39676,17556,6862,14402,3,17114,44674,45177,9341,6782,18427,45567,44836,17492,45277,32454,30135,44894,45346,17237,45042,44687,18237,17981)
Unknown column 'np.person' in 'where clause'