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 (22509,16885,44849,32454,18172,18996,44870,18286,44837,17657,5388,45042,45072,13425,18652,30135,37057,18894,17527,9341,17601,17904,44884,28313,44856,44835,44685,44669,17335,17237,45177,18650,18446,14402,6782,44845,6609,17771,45421,10402,44775,18572,17835,18900,36472,45346,44687,4765,39676,44531,45517,5259,44745,17848,13,30986,5993,44762,19078,6862,18185,44878,44689,8753,18430,18353,13988,44868,6875,44875)
Unknown column 'np.person' in 'where clause'