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 (6862,18648,45043,44674,18572,18981,17335,24412,24411,17009,17237,17835,44878,44854,18430,17492,44835,18894,3883,18301,17278,5410,17771,34194,44845,13988,44868,44775,19078,13922,16885,31354,44848,9341,13,45567,44853,44861,17114,17601,45286,8753,14402,5388,17556,17527,44873,44836,44765,44863,18185,3,4765,44867,18996,45561,45072,44851,17092,18042,43800,16935,28530,6609,32454,45262,45421,44739,30963,44745)
Unknown column 'np.person' in 'where clause'