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 (18648,44835,45421,34194,18652,17848,6875,17839,17092,24412,18572,18719,22509,5259,17556,44848,5993,44669,44878,44775,45561,6862,32454,17335,44861,45043,17114,44671,44894,18237,45229,43800,24411,45515,17771,39676,13922,17351,18430,44685,17703,45262,18688,44856,44875,18301,37267,44873,17904,36472,28530,30963,44849,44869,44863,45517,44768,45177,24441,45346,18794,18042,45567,45072,45042,28313,14622,18279,5410,17278)
Unknown column 'np.person' in 'where clause'