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 (18353,37267,4765,13,45277,45042,18688,44836,28313,37057,18900,45180,17703,45177,44768,17114,44869,45286,44848,18648,18446,44853,44894,44854,44766,17492,6609,19078,24412,18185,44851,44858,17839,22509,45516,18794,28530,30963,44835,5259,4686,45517,16935,13425,18237,13988,5388,45518,45072,44855,19057,17756,18996,44775,32454,6782,30135,44745,18301,17657,44671,6875,3883,24441,17848,18894,18719,44849,9341,44711)
Unknown column 'np.person' in 'where clause'