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 (17527,18652,6782,16885,44711,31354,44863,17657,44739,17771,3883,44854,44878,17278,44873,44745,44884,18719,17981,45262,44894,18446,44687,39676,44856,24411,13988,6609,3,44853,45346,28313,14402,18894,18572,18981,28530,18172,17835,44764,45516,44845,18900,17703,18996,44689,45042,45277,44848,44858,18794,18688,19057,44766,8753,44768,43800,45180,5388,44674,45043,17009,44836,5259,44875,45567,45561,45072,30135,36472)
Unknown column 'np.person' in 'where clause'