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 (18900,44873,18279,18185,18446,24411,18430,44711,44884,30135,44669,45517,8753,44531,37057,45229,6782,30986,17904,13922,18719,44854,45346,44863,44685,3,17657,44870,24438,44867,45180,28530,17114,14402,18981,44851,18688,5259,18042,18237,44835,44765,17556,44671,18301,32454,5993,44853,18652,34194,44856,19078,44849,31354,17756,44845,17601,6862,13425,44640,44866,18648,13,44739,44878,45561,9341,44762,18427,4686)
Unknown column 'np.person' in 'where clause'