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 (32454,18650,17657,45561,44878,13,44687,28530,44851,44745,17278,34194,24441,13988,45421,17009,17771,44689,18279,5388,18286,17981,44868,28313,45180,45229,17904,44858,44739,44764,24438,44861,24412,18652,45262,17601,45567,44669,4765,44766,30963,17335,17527,44863,18172,44836,10402,17756,16885,45518,44845,44855,13425,16935,44767,18430,44765,18688,44768,18648,44671,17492,18185,17114,6862,9341,44685,45043,17755,45286)
Unknown column 'np.person' in 'where clause'