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 (45561,18279,30986,45229,45515,45051,44894,18237,45043,44640,17278,18648,45518,30963,18719,45277,45042,18650,17755,44869,18900,45567,44531,44835,44867,18427,44851,44845,44861,14402,39676,17771,44870,44836,5993,44863,18688,9341,44711,6875,19078,18446,18894,18301,17527,43800,6782,44866,45517,6862,31354,18286,37057,44669,37267,44687,17556,17839,4686,45421,18042,24412,8753,18572,44674,44837,28313,28530,44873,17492)
Unknown column 'np.person' in 'where clause'