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 (5410,44873,18172,18427,18648,44687,45043,17839,8753,44669,44853,44868,17335,44869,44875,4765,24438,18237,44865,17492,17601,44884,44671,18996,17278,44835,45051,30963,36472,17114,44866,30135,18900,17009,10402,6782,32454,45517,44745,43800,44851,17981,19057,17351,18894,17835,18719,24441,45262,16935,44640,17904,13425,13988,44837,3883,44739,19078,45567,44849,44845,45229,44854,44531,45042,18430,44836,13922,17755,6862)
Unknown column 'np.person' in 'where clause'