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 (18042,44640,24441,17703,37267,45561,44775,17335,24438,18286,44674,43800,17527,44855,24412,44856,44875,44878,3,17492,17835,44873,44711,5388,4765,44671,17114,44836,13922,17904,18172,17657,24411,18430,44767,6875,6782,45515,44866,14622,44868,18185,19057,17009,45177,18353,44849,18650,44835,4686,32454,18719,45517,44884,45043,17556,44669,44845,30963,19078,44765,44861,45072,5410,44689,44869,30986,28313,13425,17981)
Unknown column 'np.person' in 'where clause'