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 (18648,22509,17237,13988,9341,17755,44870,18430,44768,45042,18353,30963,37057,44764,44848,19057,18650,17092,13,44858,18900,44745,44687,14622,45515,17839,18301,18894,44863,24411,17351,17556,44866,17335,44711,5388,34194,32454,44851,45072,17601,45346,45229,17904,44865,45051,18042,10402,44762,16885,18286,44739,44674,44531,30986,44669,17114,44835,6875,44894,17848,45180,44640,44765,4686,3,44884,18981,44689,44845)
Unknown column 'np.person' in 'where clause'