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 (45517,19057,44767,28530,17278,13988,44861,44869,45229,44873,44849,24412,5259,17904,10402,5388,44855,39676,44671,44884,44845,45567,3,43800,4686,18446,24411,44745,44878,17835,18427,17092,44711,28313,44689,45421,18900,18894,3883,17601,17114,37057,44837,24441,14402,8753,44674,17703,44768,44870,44766,45262,44894,18996,6862,18301,45043,44685,13,18172,13922,44863,44848,18719,18981,13425,44858,36472,44739,45518)
Unknown column 'np.person' in 'where clause'