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 (44711,37057,44868,17981,24412,18996,44767,44836,24438,28530,22509,17771,34194,17556,18652,9341,44863,5993,31354,18900,5410,17601,18185,5259,44854,14402,44866,18430,17657,45043,3,4686,44640,8753,44865,44856,13988,45180,17835,30986,44835,32454,44870,44687,18286,45518,44849,18981,36472,6862,17278,13922,45229,24411,44762,17092,44685,43800,45346,16885,18301,44861,44875,44837,44878,6782,44853,44855,44531,18353)
Unknown column 'np.person' in 'where clause'