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 (44878,18981,39676,44845,44531,14622,4765,18185,44762,18650,44775,44766,4686,13,34194,44884,13988,28530,45286,17848,6782,31354,19078,18430,44869,44687,45042,18648,36472,45561,44837,8753,17904,44745,43800,17771,45346,17351,18353,18237,44765,24438,18042,18688,17492,3,17981,44851,17839,30135,17237,18286,45180,17527,17335,5388,44861,17835,30986,13425,45567,24441,17009,18279,16935,44835,6862,19057,44768,44689)
Unknown column 'np.person' in 'where clause'