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 (18286,3,44775,13,18894,44767,44870,17835,30135,17114,18446,44689,13922,5993,44849,45262,44765,17092,44669,18301,36472,32454,28530,45515,17904,44531,17839,18981,18794,44873,6782,44869,17237,13425,31354,17771,44868,5388,45177,6875,4686,45072,44837,4765,18900,44894,44855,44867,30963,44640,44856,45229,45518,45421,16885,43800,18719,18996,24438,18237,17527,18430,44685,44848,17009,3883,28313,44845,18650,18648)
Unknown column 'np.person' in 'where clause'