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 (30963,44853,44837,18427,44861,24412,18430,17657,44849,22509,17335,17527,45516,44711,45180,37267,17848,44669,44867,44863,18650,44766,17351,36472,18172,45561,45262,44868,18185,44768,43800,9341,44745,44870,39676,17556,45515,34194,44845,45043,18648,44739,18301,28313,6862,44765,32454,17839,45277,17756,44640,5388,45567,44671,45421,17904,44531,30986,18446,5993,44674,3883,44689,45518,37057,44685,44856,44866,44869,24441)
Unknown column 'np.person' in 'where clause'