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 (6862,13988,18172,45515,45561,18648,44640,18894,17657,17527,18279,17092,17556,17114,45042,44849,17492,45567,17237,14622,17351,45421,44858,5410,17771,44689,44848,18794,31354,37267,44894,44861,45051,17835,44878,18237,44836,17839,17904,44764,5259,16885,44685,10402,30135,44765,44669,45043,36472,45517,44775,18185,45277,44739,44845,17756,28313,13922,44873,13425,37057,44835,18981,44863,44674,5993,44687,18427,30963,44869)
Unknown column 'np.person' in 'where clause'