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 (28313,44878,44865,45042,13,44765,44856,44869,30963,18286,18996,17114,18900,45421,17009,18446,44848,44835,45043,8753,5993,3,30986,44851,13988,6862,45515,17092,44531,44875,44768,4686,19057,5259,31354,45516,18652,17848,44849,18894,44685,44762,37057,44870,44863,39676,17601,44837,17839,44640,44855,6609,45262,45277,44866,44687,24438,17278,17756,44854,44739,24441,44689,18185,18650,34194,14402,28530,17981,18648)
Unknown column 'np.person' in 'where clause'