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 (24438,44762,17848,16885,45177,3,18185,17601,18894,6782,45421,18981,18301,44745,45516,44870,17771,45286,44845,44865,18427,17492,17556,44856,45072,18042,44671,19057,5388,44848,17237,45042,30963,45043,10402,14402,6609,18648,43800,44836,16935,17981,45567,45561,14622,17756,44837,18688,17092,18650,44855,44866,18446,8753,3883,36472,17839,18430,6862,18794,18286,17835,17527,44766,37267,39676,13988,44863,17335,24411)
Unknown column 'np.person' in 'where clause'