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 (13922,31354,18430,45051,18172,18900,44685,44764,32454,18650,44866,43800,44848,17009,17839,17771,18794,16935,44873,44674,44894,18353,37057,44739,45515,17092,45286,17755,18652,18185,45516,17703,18894,44869,19078,18042,18237,19057,18301,17492,44858,44854,10402,16885,17657,44767,45180,44711,44853,44687,45042,9341,44768,44870,44836,44861,8753,44855,17335,44765,44867,18572,30135,17756,17904,28313,44531,22509,44835,5259)
Unknown column 'np.person' in 'where clause'