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 (44835,18286,17839,45346,45286,44739,44669,45421,44855,5993,18042,18794,45072,45518,44531,17492,10402,16885,18900,39676,44849,5259,45561,37267,18650,13425,34194,18648,44873,44863,18185,45567,44853,17335,44640,17114,44711,18894,30986,45051,45180,19057,44867,45516,8753,18430,44765,17351,44878,4686,18719,17756,6862,17835,44671,13,22509,14402,18652,44865,17556,17601,37057,6782,24441,3883,17755,44767,17657,44836)
Unknown column 'np.person' in 'where clause'