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 (18237,17657,17009,17839,44870,4765,44868,45561,44853,18981,16935,45567,44768,45518,6782,44873,17703,18648,3,18719,37057,5388,44765,6875,22509,44764,44878,45277,18688,45180,43800,17527,44685,45042,44848,45072,44745,44766,44711,28313,45051,5410,44671,34194,45346,44875,13922,44855,44739,17848,44865,45286,18185,44845,44674,37267,17601,17351,18301,17904,44856,13988,14402,8753,17092,44861,30135,6862,5993,17278)
Unknown column 'np.person' in 'where clause'