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 (18042,17278,44775,44837,19078,17904,19057,45517,44870,5993,44855,18652,3883,4686,5259,17092,6875,18430,28313,17835,44866,44875,18301,17492,45180,17771,17237,13988,17601,44640,44851,44768,39676,31354,44861,17335,18572,14622,10402,17981,44764,16935,44894,37057,44674,45072,45043,17657,24441,18688,44848,16885,30963,45286,17703,44531,17009,6609,18237,44873,17556,45262,17755,44669,44865,44878,22509,32454,5410,44745)
Unknown column 'np.person' in 'where clause'