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 (44858,17114,45515,44764,45286,44865,19078,24438,34194,45229,5259,17835,37057,17839,44853,17492,13,45177,44869,13922,36472,44867,5410,18042,13988,44870,44849,45277,18279,9341,44711,31354,3883,22509,18648,44689,3,44766,45180,44669,17904,44835,45516,30986,18650,45051,17657,37267,44854,44873,44884,44866,17092,6782,44836,44745,44837,8753,18688,44739,17237,45561,6862,17556,44687,17755,44863,5993,10402,24411)
Unknown column 'np.person' in 'where clause'