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 (44856,44531,18279,17114,44837,45421,8753,30986,16885,44858,24411,45286,9341,17904,17601,24412,17848,44867,6609,18353,22509,17756,18185,17237,5259,44849,44873,3883,44878,44669,18648,28313,5388,44875,45561,4765,37267,18650,44835,18446,43800,44739,18652,45262,45177,18688,17755,13922,44640,28530,17278,45567,24441,44764,17703,44836,6875,17981,37057,36472,44711,17657,44775,44768,44884,44894,17335,17492,45516,44869)
Unknown column 'np.person' in 'where clause'