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 (13425,18900,44739,45177,6875,18301,39676,44765,5993,44767,45567,9341,16885,18185,45051,45043,44640,44685,18652,28313,18427,18719,17527,18650,44884,5259,44674,14402,44845,3,45042,44853,17755,28530,17556,18572,18042,45229,22509,44865,17114,37267,16935,19057,17839,6862,44868,44745,44775,45516,44863,44855,17657,44671,13,14622,24441,18894,4686,24412,17848,44531,18794,44869,44867,44768,44851,45346,44836,17092)
Unknown column 'np.person' in 'where clause'