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 (44863,18719,45277,22509,18572,30986,44765,24441,13922,44531,44689,44775,44875,17848,10402,17981,44853,45042,18794,4765,17492,44685,17904,44640,44687,44868,44835,44865,5993,17839,17755,44845,17237,17114,44669,17771,13,24411,44849,37057,13988,30963,14622,18301,17657,44884,36472,45518,18430,5410,30135,18237,8753,44858,16885,44866,45517,18172,44671,17527,44837,44869,45072,44894,16935,17092,18648,17703,44867,43800)
Unknown column 'np.person' in 'where clause'