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 (45180,22509,44767,18185,16885,24411,44884,44671,32454,44711,30135,44775,17351,18446,13425,17092,18042,18286,44745,44870,37057,44851,6782,17755,13922,17009,18650,18572,6875,44861,13,44863,45177,45286,17981,18427,28313,45229,44855,4765,24438,19078,45561,45421,24441,44687,18430,36472,17492,9341,5993,45042,45262,18719,19057,5259,44689,44878,44837,18894,44865,44640,18353,44869,13988,18794,17756,17839,17657,6862)
Unknown column 'np.person' in 'where clause'