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 (18185,16935,44767,17009,3,18572,44775,44768,44845,6782,39676,44711,36472,24412,22509,18279,17601,44894,17657,18172,24441,17278,18648,44861,18794,45421,45262,18353,17904,44855,44854,18996,17556,44766,18237,18894,17114,45043,17492,14622,44853,44764,45177,17703,6875,18652,37267,4686,28530,18688,44640,14402,5410,44878,44669,17839,28313,45516,44873,44865,45517,44851,37057,34194,17771,19057,18650,17835,45567,13425)
Unknown column 'np.person' in 'where clause'