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 (17278,18688,44875,44869,39676,44848,18430,17771,44851,44861,16935,13425,6862,45229,24438,14622,37057,44689,17904,16885,44762,17703,44685,3883,18172,45262,8753,17755,18650,13,3,17009,18996,31354,6782,45286,17981,17848,18185,24412,44894,24411,28530,44768,45567,18900,10402,44739,34194,45072,45516,17839,44863,17835,44775,44854,44640,18981,44669,18648,44845,18286,13988,45346,17756,45177,13922,45515,44837,18446)
Unknown column 'np.person' in 'where clause'