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 (45042,13,45561,17351,19057,16885,28313,44711,44894,18688,18446,44855,17703,24441,45043,44640,18572,37057,24412,39676,10402,17835,13425,44739,18719,3883,45277,44848,44766,17601,36472,45072,18301,28530,34194,18172,44767,5993,45515,17278,44861,44687,14402,45177,44854,44858,44775,17755,17237,45180,44768,44837,44764,5388,18652,18353,44875,9341,44836,44873,13988,45517,18981,44856,44845,44851,18894,44669,44867,18900)
Unknown column 'np.person' in 'where clause'