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 (44640,8753,45072,44849,45043,45515,36472,17009,5259,18648,18237,44766,18688,44745,43800,17237,17492,44855,17351,17335,44869,24438,3,17839,16885,24441,18353,18430,32454,44865,44873,17657,14622,44775,28313,44674,44764,44875,18446,31354,18042,44866,13922,44531,45051,44687,17092,18996,18572,45518,44845,17756,16935,45516,45229,5388,13,17904,44856,18900,18719,45180,44858,44853,44884,17771,18279,6875,17601,44854)
Unknown column 'np.person' in 'where clause'