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 (8753,44835,17839,45043,22509,44685,10402,44875,17114,17278,6875,18279,18650,36472,44671,24438,18652,13,17601,45516,30963,45567,16885,45072,24412,44884,44866,5259,44854,17981,45421,44849,17492,17009,44768,44858,44863,44836,5388,18185,17835,44765,45177,14402,44674,44878,44669,44767,45229,39676,3883,17351,17756,44837,17848,18981,18353,5410,18237,17527,17771,37057,31354,28530,45051,32454,24441,28313,18900,18794)
Unknown column 'np.person' in 'where clause'