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 (44836,17092,44878,4765,44531,14622,30135,44854,13,18279,39676,18648,44856,45567,17009,45346,17904,5993,10402,17657,18301,18446,4686,44865,17771,44851,17335,45262,19057,45518,18286,18172,5259,18042,44849,44766,44745,44894,44870,18981,44858,31354,18652,13425,44867,44869,17981,18572,44762,44739,18237,44837,17756,44671,17492,18650,18794,45042,44669,24411,30963,5388,17351,24438,37267,44875,6862,44848,28313,16935)
Unknown column 'np.person' in 'where clause'