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 (18894,5259,17839,17492,17835,45421,17657,45515,18794,18688,44873,18042,45072,17755,44884,4765,44669,16885,44767,8753,44863,17556,18301,45043,18279,6782,3883,44849,44711,18286,22509,18648,6609,44866,13922,44875,19057,45517,14622,32454,18996,18719,17009,44878,44765,44671,44861,18900,37057,28313,44674,17981,6862,44835,44848,44855,5388,45346,34194,18430,44845,44837,17092,36472,44689,45516,45286,45567,44867,18650)
Unknown column 'np.person' in 'where clause'