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 (44674,45042,14402,45277,18900,44878,18185,31354,10402,44764,13,18572,6862,28313,44711,44739,9341,44856,17351,5410,4686,6609,44765,17092,30135,18172,44848,45051,18301,18650,18981,24412,45515,44873,44875,17703,5993,34194,44531,17492,18430,44669,37267,44863,18427,24441,44745,14622,17335,19057,5388,17839,18688,36472,17771,18446,44894,17114,13922,44762,45229,17527,17009,19078,6875,44845,44836,39676,18279,43800)
Unknown column 'np.person' in 'where clause'