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 (44866,18279,17556,45567,17771,17839,31354,13425,44745,24441,17492,44863,22509,44671,30963,44767,18353,34194,4686,44762,18719,44836,17848,37057,44855,44875,18794,16935,18430,44849,44764,18286,45421,44685,44531,44878,18648,28530,18042,44861,13988,17092,44869,44894,18572,14402,44858,36472,19057,10402,5410,44856,45561,44640,44687,24411,16885,45286,17237,13922,6875,30986,18996,17335,45517,32454,44848,45177,44845,14622)
Unknown column 'np.person' in 'where clause'