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 (17771,45346,43800,24441,17657,17601,44640,18042,30135,6609,18427,45177,13425,44685,44745,17981,17335,44875,45421,5388,19057,24438,13922,44767,44836,17009,44849,17492,18719,4686,45286,45043,6875,45262,44674,45518,44711,9341,17835,44873,44669,30986,17237,44884,16885,45042,39676,44845,18430,44865,17351,44764,44762,18279,17278,24411,17556,44868,18794,44531,45277,13,44768,45567,14402,5993,19078,17756,44856,14622)
Unknown column 'np.person' in 'where clause'