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 (24438,45177,45043,3883,28313,34194,44873,44689,18237,18172,44845,44674,24411,44835,18688,44869,17657,17904,9341,17755,44851,24441,44711,45518,17771,45180,18042,44894,44870,16885,4686,45561,18185,44640,13,44745,44766,45262,3,43800,44861,17351,17839,45516,8753,18650,44884,44856,44685,44848,44867,44863,6782,17492,17092,45072,6609,44866,19078,44836,18894,18430,17756,44868,22509,45515,44669,24412,5388,44853)
Unknown column 'np.person' in 'where clause'