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 (24441,10402,45518,45042,44851,5388,18572,30135,17092,44873,18446,44870,18185,18996,37267,19078,18981,17756,4686,9341,44854,45516,16935,44894,6875,17556,44849,44689,22509,30963,44836,3883,18652,44640,17981,14402,13988,44837,44711,44745,17351,32454,44868,18900,44867,44674,17657,45180,45567,36472,18894,45177,44671,44856,14622,13922,3,28313,17492,44739,45515,6782,44775,17278,17009,28530,18237,18688,17771,5410)
Unknown column 'np.person' in 'where clause'