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 (44869,3,24441,44854,17527,44762,13988,44745,14622,18648,44863,44739,17114,17601,44875,44671,16935,6862,18430,17839,17981,45515,44689,24411,45561,44836,44878,44835,34194,24412,37267,36472,17771,44855,18572,44640,18719,39676,44674,44848,19078,6875,17335,44865,5388,44669,44856,45262,18286,18279,18652,44531,18981,45346,17657,18172,14402,44861,18237,45072,4765,18185,44867,18900,45517,17556,45516,45277,32454,17009)
Unknown column 'np.person' in 'where clause'