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 (18042,44764,14622,44894,44837,16885,3,18652,44875,44873,17981,45421,44674,44848,18900,45567,44775,19057,44853,6782,17092,10402,18648,18650,44878,44865,18286,17009,34194,45518,44861,45043,44669,17237,18446,44868,9341,6875,19078,17492,24412,17657,44835,17835,32454,17771,17904,44711,6862,44765,17278,45262,6609,44689,44531,44851,44671,44858,17839,44866,45180,44855,13425,18353,18172,8753,45286,13922,36472,44767)
Unknown column 'np.person' in 'where clause'