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,45516,3,44836,17839,18430,17278,44845,45515,19057,18648,18572,18353,18279,17981,6609,44863,45346,18719,28313,3883,18286,24441,44711,45567,9341,18446,44739,30963,5259,44775,17601,18185,30135,44768,37057,14402,18172,19078,45421,37267,4686,13922,44851,44745,44767,6782,44687,44685,6875,45072,32454,18900,13,44849,18237,44853,13425,44855,18794,45518,17756,45561,30986,17703,18042,17556,18688,44865,44870)
Unknown column 'np.person' in 'where clause'