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 (45346,6609,44531,44640,37057,17237,17092,44875,44868,44762,45518,17556,6862,18430,18185,44884,10402,44867,17848,44853,24441,13988,24411,18279,44870,17601,44711,18446,44685,44866,17492,45515,17904,44689,19078,17009,3,44745,18237,45421,28530,17835,45286,18652,18650,16885,44739,6782,32454,45229,34194,17351,30135,18648,13922,17839,45517,45043,44851,28313,43800,44671,44863,17114,44767,44865,18042,5259,44856,5388)
Unknown column 'np.person' in 'where clause'