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 (17556,43800,45043,44768,18042,13988,44739,18427,44845,44766,18996,44762,18301,45515,5388,17009,44851,44835,45517,45277,18719,45516,44884,30986,44775,19078,44856,24411,44674,3883,44531,17601,44867,45567,44837,4765,18430,24438,45072,18650,14622,34194,18981,44711,28313,5259,44687,45051,44685,18446,17527,45177,44861,9341,44865,24412,45286,45229,18900,24441,44869,44894,17492,45262,6782,17981,17703,44671,44848,28530)
Unknown column 'np.person' in 'where clause'