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 (44855,17237,6875,9341,44766,44739,17556,17839,45051,5410,18427,18648,8753,17771,28313,17835,30135,24441,24411,44845,17703,18572,18652,19057,44884,44768,36472,44835,44851,45561,45262,17092,16935,18900,39676,6862,18172,44689,45567,30963,18719,14622,17351,18353,44765,17335,45286,44853,44848,17527,17756,44671,13922,31354,45043,17657,44873,4765,18894,17981,18446,44836,18185,45072,44878,28530,18981,13425,18650,18996)
Unknown column 'np.person' in 'where clause'