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 (30135,39676,10402,44762,44855,45262,44669,44837,44875,18446,44745,18900,45561,31354,19057,34194,44739,18996,18794,18301,45229,44671,44766,18430,5388,45043,17278,18237,24412,45517,17092,44865,17527,44849,32454,9341,13922,44856,17904,5410,44861,44835,13425,28313,18353,13988,17114,44768,8753,37057,30963,44685,45346,18719,45277,44851,3,44853,44836,45072,44640,45051,18981,5993,44531,18172,4765,14622,6875,44689)
Unknown column 'np.person' in 'where clause'