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 (44848,44868,44873,44762,44674,3883,17492,18996,17278,44835,19078,44836,17657,5993,24438,37267,18688,17527,17755,37057,8753,44861,45042,39676,32454,44884,14402,44671,45043,16935,18648,22509,6782,44765,44640,44866,5388,14622,18652,44687,18650,18279,6609,44858,45051,18572,44711,44768,44854,44878,45286,17703,45516,44875,43800,17335,45567,44869,44853,4765,30963,10402,18172,45421,45518,31354,44745,13988,28313,9341)
Unknown column 'np.person' in 'where clause'