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 (17835,44855,45517,6782,45229,6609,17278,45515,44861,18719,22509,44894,17771,44848,17237,17335,18237,44867,18650,17756,44531,18185,30963,44875,44853,28313,44640,44868,43800,24438,18996,45262,37057,37267,44685,44849,18353,13425,24441,45561,18042,5410,18172,3883,44851,17556,18894,5993,32454,45518,18279,24411,17492,44858,16885,17839,45277,18301,45286,34194,17981,17351,39676,44878,30135,44739,44845,13922,45567,44873)
Unknown column 'np.person' in 'where clause'