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 (45043,44745,18446,28313,18427,18996,44531,44671,45517,44848,18719,44858,44878,44853,44739,24412,18172,24441,45262,18353,39676,45346,17771,44687,44685,45421,45286,45042,17114,18286,44851,44674,4765,17839,45518,44837,44855,45051,44766,44764,44865,44849,24411,44669,17756,17981,44835,45229,44836,18688,18648,31354,6875,30986,14622,17278,30135,13988,6782,44866,32454,16935,44894,30963,10402,37057,44868,44861,45072,18894)
Unknown column 'np.person' in 'where clause'