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 (44867,45517,45180,44689,45561,32454,30963,16885,45346,17835,44865,16935,18042,44854,36472,44739,31354,18172,44687,45043,17092,44849,18794,45051,43800,44837,44685,39676,44866,3,17351,4765,45515,18894,44765,18648,17657,5388,18279,5259,13,45042,18652,45277,44745,44845,17492,18237,45072,5993,44851,17335,44868,44873,10402,18572,17114,6875,17904,9341,22509,44674,18353,5410,28530,44858,44711,24438,44775,18427)
Unknown column 'np.person' in 'where clause'