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 (44764,44861,17904,6782,44853,18286,44863,44884,44856,17527,36472,45177,17335,37057,18446,17848,3883,18719,45517,28313,44867,19078,17556,6862,44865,17835,31354,37267,5410,18353,17703,44868,8753,44845,45042,30986,17092,45051,45515,17278,17601,18650,44870,28530,44836,44775,44851,44894,44854,17839,19057,16935,45561,44765,16885,45516,14622,44768,18900,44685,17657,13425,14402,22509,44855,34194,44674,18237,45421,5388)
Unknown column 'np.person' in 'where clause'