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 (18652,44669,18237,44739,18688,44711,44856,17904,45042,31354,6609,45517,17848,17601,5993,32454,10402,30963,30986,3,45286,17278,45515,44863,5388,4686,44685,24412,4765,44848,22509,18042,45072,45421,45561,45262,44855,17703,17009,37057,28313,44854,44858,18286,44865,44640,14622,18648,14402,44875,18981,13425,44868,44845,8753,6875,18279,18446,17839,44766,18900,17657,44775,44870,45043,45180,17835,17492,17556,18172)
Unknown column 'np.person' in 'where clause'