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 (5410,17492,18430,30963,6875,13425,5388,44845,18572,18286,8753,10402,34194,44868,18650,39676,18185,18652,32454,18719,43800,44767,13988,44865,44848,44866,44884,44863,45516,17601,44768,18996,18688,6782,44858,3883,18894,44861,17848,5259,18301,18279,18446,44765,45277,17335,30135,31354,18237,17527,45229,44851,22509,44878,18900,44873,37057,45072,44745,44775,24438,44531,44687,44894,45515,44739,28313,44836,44685,17556)
Unknown column 'np.person' in 'where clause'