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 (45567,18572,4765,6609,17092,44869,22509,44775,18301,44836,17335,17981,45516,45051,37267,10402,45346,18237,18286,24438,3,30135,44745,18042,14622,34194,44845,9341,44870,13,5410,8753,17904,44873,44762,24412,5259,44689,18894,17009,44868,13922,44848,44640,44671,45421,45286,17114,17771,18719,45072,24411,44866,30963,18794,17839,45517,16885,44855,44685,18172,44878,6875,45277,44853,44764,18650,44835,45561,18430)
Unknown column 'np.person' in 'where clause'