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,18279,44845,44671,18446,44775,44739,24411,18237,17904,44853,13922,45043,45277,17839,17556,45567,17835,28313,44856,44711,45229,44669,31354,45346,18996,18185,44875,44765,5388,44766,18719,44835,44869,18172,39676,30963,5259,16885,45180,5410,13,3883,44764,10402,17335,44868,45517,45072,37267,4765,14402,44863,44894,24412,44674,44762,9341,17114,13988,6609,19057,17351,44851,17492,44870,18353,44687,44867,18652)
Unknown column 'np.person' in 'where clause'