Souvenirs

Errore nella query:
SELECT immagine,
						(SELECT count(id) from prodotti WHERE attivo = 'on'
						AND pubblico = 'on'
						AND (categoria_1 = 1 OR categorie LIKE '%,1,%')) as total
						FROM prodotti
						WHERE attivo = 'on'
						AND pubblico = 'on'
						AND (categoria_1 = 1 OR categorie LIKE '%,1,%')
						ORDER BY ordine DESC LIMIT 8

Deadlock found when trying to get lock; try restarting transaction