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 (31354,44845,30135,44861,44856,14402,18430,45042,24438,44851,18301,17556,45515,37267,44835,44640,3883,44689,44669,18286,45286,44873,18446,43800,13,17237,16885,18353,18185,44869,13988,45567,18237,17657,17904,4765,17335,44870,17839,44867,44685,30986,44894,30963,14622,17351,44711,13922,44868,8753,44739,45517,17755,45177,18894,24411,18650,17835,45072,18900,45229,5259,19078,18996,16935,18981,44671,18572,18042,13425)
Unknown column 'np.person' in 'where clause'