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 (14622,44867,44878,44671,44848,3883,18794,44863,44775,18900,45561,44767,6609,4765,18286,5388,44685,18981,44762,45051,45277,31354,17657,28530,17756,17335,44856,17009,37057,13425,45517,45346,44855,8753,3,18650,16935,44851,22509,44875,24441,30986,17114,44711,24438,44870,17601,14402,18894,44766,37267,18446,9341,17092,18427,5993,45042,45421,28313,18652,6875,13988,44836,18185,16885,19057,18719,18279,17771,44745)
Unknown column 'np.person' in 'where clause'