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 (14402,44867,17351,18286,13425,45043,18185,24412,36472,3883,16935,44884,45518,18648,44685,44851,24411,24438,17114,44878,44868,28313,4765,45042,45286,17009,44775,18042,5388,17556,17835,45517,18894,44853,30135,45515,6782,19057,32454,44687,18353,17755,45180,44745,44531,9341,44870,44861,45561,44866,17278,45051,17657,37057,43800,5410,45277,17092,17601,44836,44873,18446,18981,18237,44768,17237,44764,30963,44765,18900)
Unknown column 'np.person' in 'where clause'