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 (45262,45042,17278,45043,44671,17556,44711,36472,17755,44853,45051,43800,37057,17009,17756,18427,17237,45072,45517,22509,18237,18172,44875,13988,18572,44685,6875,45180,45286,44669,44866,18286,44766,44849,44640,17092,18301,5259,45421,44689,44836,44854,45277,44870,17771,44868,44855,17835,44863,44764,30963,37267,18794,30135,5410,17114,17848,13425,3883,45561,45229,10402,14622,44884,18688,16935,18996,44765,44775,18446)
Unknown column 'np.person' in 'where clause'