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 (44837,10402,44866,44689,18286,44878,44671,17009,44854,9341,37057,14402,17657,34194,44884,3883,16935,18652,44766,22509,45042,16885,31354,17904,44845,18688,44858,44765,44739,30963,17492,44764,44767,45517,4686,18172,44869,19078,28530,45515,44640,18996,44894,28313,13,32454,44768,6609,17335,6875,24412,18353,44873,17601,44669,17278,6782,44851,18279,17114,44775,45346,44853,44865,18648,17527,17755,44745,44848,45043)
Unknown column 'np.person' in 'where clause'