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 (44875,17527,44762,45286,44767,45229,44640,44851,18430,44845,17278,17009,17492,18981,14402,31354,18650,10402,30135,16885,44867,44854,3883,18301,16935,44884,17771,17556,17092,44766,44848,17756,19057,9341,44836,44870,17114,18286,45043,44835,8753,44853,18648,39676,17335,44531,17839,44745,17981,44768,18237,44849,4765,44685,45072,44837,17237,44869,4686,45177,44687,37057,17601,44739,44863,45277,6862,44878,13988,45517)
Unknown column 'np.person' in 'where clause'