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 (30135,45051,17601,44867,13988,3,44669,34194,28530,13922,9341,44689,17703,24438,44848,17756,18301,18996,30986,17237,44671,44865,44531,44685,45515,3883,18648,17114,45346,14402,45286,44853,45567,13,43800,18719,44878,4765,4686,44858,6862,44739,36472,45177,18894,44845,30963,5993,44687,14622,17335,18900,17092,16935,17771,17657,17904,28313,45516,45421,10402,17527,37057,44836,44884,18652,17981,44767,5410,18237)
Unknown column 'np.person' in 'where clause'