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 (6609,6862,18688,45277,45180,13922,16885,44837,17492,8753,44669,44765,44531,44855,18900,44868,4686,44768,17703,34194,45567,17771,44766,17755,9341,18185,18996,18650,4765,44894,44836,17848,18446,18981,30963,28530,37057,44873,18042,28313,3883,44775,44869,17839,44739,44863,18286,24438,19057,44853,30135,3,45517,18353,13,44711,44851,44854,17556,44884,17981,17092,17278,5993,5388,6875,44685,45561,32454,45043)
Unknown column 'np.person' in 'where clause'