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 (17556,44869,44851,30963,17601,18981,24412,44870,45177,17092,17351,45517,24441,44849,5993,44894,44640,14402,44878,44685,13,44865,30135,44873,34194,19078,18301,6782,14622,44835,44854,44855,44866,44762,37057,43800,13425,44837,5410,44853,18688,18237,44768,44671,17237,18185,16885,16935,44858,45567,44531,5388,31354,18446,18172,44775,17703,18894,18900,17839,45518,44868,44669,45051,18430,44848,44845,5259,18650,28530)
Unknown column 'np.person' in 'where clause'