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 (18900,3883,18894,44711,45177,3,44835,17601,17527,18237,17981,44531,30986,44640,44775,44762,44863,45561,9341,34194,32454,39676,17351,18688,44884,44873,44856,18042,17904,18981,17237,45180,4686,17278,24411,18427,44867,5259,17755,18719,45072,44861,17335,6609,17492,17756,5410,45518,6782,30135,18430,13988,30963,44848,44853,44687,18650,44671,45516,44745,45229,19057,16935,44836,44855,44689,45286,44739,44669,44865)
Unknown column 'np.person' in 'where clause'