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 (17092,18301,44669,18430,44869,17335,44875,45042,17771,44689,44870,44848,18279,5993,18688,17601,44836,45561,18648,44835,18286,32454,30135,44768,37267,44865,18353,17756,45421,44866,45177,44711,45516,44878,24438,44894,18981,44745,44671,17556,30963,18427,13,10402,17703,17904,37057,44851,4686,24412,17839,44685,13425,44775,28530,45262,18794,17237,44849,18042,9341,39676,44856,45072,45229,44762,31354,44855,17114,24441)
Unknown column 'np.person' in 'where clause'