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 (14622,44687,24438,18900,13,39676,44669,18353,44878,44873,44867,44640,13988,44845,5410,44855,44835,18648,6782,44739,45567,45286,44856,18430,18427,10402,6609,24412,44875,13922,17657,5993,18279,44854,17114,45072,45346,44764,44766,18572,45177,18688,44836,8753,45262,44863,17335,24441,18172,45043,19057,30963,37057,16935,17492,44851,37267,44671,18650,28313,17237,3883,18719,30135,17771,18446,22509,16885,17527,32454)
Unknown column 'np.person' in 'where clause'