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 (45421,9341,45286,44853,18042,44711,17703,22509,17492,44851,10402,17556,44837,18237,18894,18430,45072,18688,44869,13922,18279,4765,44687,17771,45346,3,43800,45180,45042,5388,45561,45515,17657,16935,44849,17237,17278,44865,13,6875,44767,44765,28530,17848,45518,6782,17092,17527,44674,37057,44866,8753,18185,18719,31354,44875,44884,45043,44531,18353,17114,17839,44640,44863,44671,19057,18996,30986,44766,16885)
Unknown column 'np.person' in 'where clause'