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 (44762,37057,37267,45229,45518,18894,17981,44845,24411,44739,17703,45277,16935,44669,17848,17755,18279,30986,17351,44531,44768,17335,5259,9341,44837,18996,44858,44689,44766,17657,17009,45517,44869,44856,17601,18572,18042,18172,17904,4686,44687,44863,5388,45042,44671,44767,30963,24438,18794,17492,5993,44745,22509,44865,30135,44868,10402,17237,17527,18900,14622,18652,44685,45051,24412,28313,44870,24441,18648,16885)
Unknown column 'np.person' in 'where clause'