SQL Error : 1054 Unknown column in query con PHP
Ragazzi non capisco perchè se eseguo la query tramite uno script php mi mostra l'errore suddetto, mentre se eseguo precisamente la stessa query su phpMyAdmin mi mostra correttamente i risultati?
La query è questa:
Codice:
SELECT id, name, view FROM bands ORDER BY view DESC LIMIT 0, 10
La struttura della tabella:
Codice:
`id` int(5) unsigned NOT NULL AUTO_INCREMENT,
`bio` text NOT NULL,
`label` varchar(255) NOT NULL,
`current_label` int(11) NOT NULL,
`letter` varchar(1) NOT NULL,
`name` varchar(255) NOT NULL,
`genre` varchar(255) NOT NULL,
`nation` int(11) NOT NULL,
`city` varchar(63) DEFAULT NULL,
`date` varchar(4) DEFAULT NULL,
`website` varchar(63) DEFAULT NULL,
`myspace` varchar(63) NOT NULL,
`logo_ext` varchar(4) NOT NULL,
`logo_width` int(11) NOT NULL,
`logo_height` int(11) NOT NULL,
`send_id` int(11) NOT NULL,
`send_time` int(11) NOT NULL,
`edit_id` int(11) NOT NULL,
`edit_time` int(11) NOT NULL,
`edit_count` int(11) NOT NULL,
`view` int(11) NOT NULL,
PRIMARY KEY (`id`)
Grazie in anticipo ragazzi :wink: