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 (44866,44711,44687,37267,45177,8753,44764,34194,44531,17335,18446,5388,44739,18237,13425,6875,9341,18301,18172,45567,45042,44865,14402,44845,18794,44894,4686,4765,44836,44854,45346,44867,18652,30963,17835,31354,18650,44848,44855,18427,45518,16935,37057,28530,44869,44671,44873,45515,18572,19078,44745,10402,45072,44689,44870,13922,28313,45286,18900,45262,14622,44685,39676,44851,3883,6862,18279,24441,44878,44775)
Unknown column 'np.person' in 'where clause'