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 (24438,10402,44894,4686,45180,45421,45229,18279,44858,18996,44687,44854,5993,44856,3,30963,17601,18286,17756,36472,45518,18648,44762,17009,45516,45286,22509,18353,44867,3883,13922,44868,17904,24411,44671,44863,6782,5259,13,44873,32454,44835,31354,45072,5388,45567,16935,18042,44853,17556,44767,34194,44855,13988,44870,44884,44531,24441,14622,28530,44766,18185,44764,44745,17703,8753,45043,45177,44845,4765)
Unknown column 'np.person' in 'where clause'