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 (44848,44878,44837,45421,13988,18301,18353,44861,24411,17092,45042,32454,17601,6862,44856,18719,24441,45517,30135,18279,28313,19078,22509,45043,3883,13922,18042,17904,17657,18996,30986,44762,45051,45515,18237,17981,44849,6609,45518,14622,45277,44894,45346,18648,45561,17771,44845,44851,37057,4686,44739,45177,17009,17703,5388,9341,44669,17114,17492,44768,45516,8753,18688,36472,6875,39676,44767,14402,44745,44858)
Unknown column 'np.person' in 'where clause'