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 (44870,44863,3883,13,44762,18042,18172,6609,44867,45515,13988,18894,18430,30963,13425,44775,44869,45043,6862,45421,45516,28313,17556,44531,18650,44878,44837,45561,18794,44689,17351,18301,16885,17756,8753,17601,30986,44854,22509,45286,3,44848,45051,18900,10402,45518,44865,44765,24438,5259,44836,5410,18353,44711,37057,16935,34194,31354,17492,28530,19057,17703,17755,36472,4765,43800,45177,18996,44855,17278)
Unknown column 'np.person' in 'where clause'