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 (13425,44685,18688,44674,17755,14622,44687,44845,44531,18648,18286,45180,44894,44856,45042,24411,18900,17756,44768,45286,44669,17335,18353,16885,18279,17657,24441,22509,39676,18042,17278,45051,18894,45567,44878,8753,28530,44870,44867,32454,24438,44671,44835,5993,45515,13922,17848,18572,44767,44764,45229,17492,18237,45072,5410,45277,44853,18719,44855,44711,44766,6782,44873,34194,44848,17092,31354,17351,44837,30986)
Unknown column 'np.person' in 'where clause'