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 (36472,5993,10402,44866,45286,44768,44848,44685,32454,44671,17657,44865,18185,44854,18688,30963,17755,17771,5259,6609,18301,44531,44867,37267,24441,44775,17839,17848,44856,18042,31354,44884,45177,44687,45043,17278,17009,18652,44853,45515,45277,4686,45517,44669,44878,44640,44849,13922,18237,44873,18446,44711,18981,13,18353,30135,17756,44835,45561,18286,45516,24438,24411,17492,45567,44858,34194,18648,17981,45051)
Unknown column 'np.person' in 'where clause'