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 (16885,44685,36472,30986,44854,9341,18900,6782,44531,19078,24412,18185,44765,18648,45277,44869,5410,5388,45180,44640,17839,44878,44745,18279,45051,18301,24441,45346,44849,18427,18353,44894,22509,18237,4765,44764,17335,44851,44767,44739,18286,24411,18042,44837,44671,30963,45286,44868,14622,6862,44762,17981,18430,13988,44865,17771,17237,17114,10402,37267,16935,4686,34194,3883,18794,17703,44863,44689,43800,44855)
Unknown column 'np.person' in 'where clause'