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 (5259,45277,17092,44671,32454,8753,44767,45229,17848,45177,44775,18042,3883,18301,13988,45517,17981,44685,18286,18446,45346,30986,16935,13425,4765,28313,22509,44739,44711,17756,13,18427,44863,44845,17835,44855,45561,5410,44870,18430,45515,17527,45180,10402,6862,44687,44640,45262,44768,45051,45567,24438,17657,43800,45516,44867,18794,44853,44894,28530,18650,19078,14622,17703,3,44869,18353,18719,17237,17492)
Unknown column 'np.person' in 'where clause'