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 (17335,18042,17601,18996,18981,17848,44762,44863,44768,22509,45517,6782,6609,44870,6875,44845,44765,44739,43800,10402,44669,44878,5993,18794,3883,44894,18648,17237,13988,45043,30135,30986,18650,45042,17981,32454,44873,18446,44745,18430,44848,17492,45516,18185,17904,17278,44855,14622,13922,6862,44851,44640,4686,45346,24438,17756,45262,24411,9341,18427,14402,45518,44685,31354,18572,45561,17703,18894,44687,45286)
Unknown column 'np.person' in 'where clause'