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 (13988,17657,44870,44835,45286,44873,16885,3,44775,45567,17009,44685,18286,44868,18042,44768,8753,45042,44853,17981,17492,18430,18650,18981,5259,44894,39676,44764,6862,44836,37057,18900,44848,17601,45516,30135,17278,18185,17237,44837,9341,18688,6875,24438,30963,18172,44766,32454,18648,37267,45072,44762,44745,45346,18427,45421,17335,17756,17092,10402,34194,24411,44878,24441,44674,17771,44767,5388,6609,18353)
Unknown column 'np.person' in 'where clause'