I'm doing a query which returns empty values when that column has data with those values, this is the query.
select * from 'clase'
where 'fk_id_familia' = 3
and 'fk_id_familia' = 6
and 'fk_id_familia' = 2
And these are the data that the table has:
$clase = array(
array('id_clase' => '25','clase' => 'Equipo Veterinario','fk_id_familia' => '1'),
array('id_clase' => '26','clase' => 'Vestuario Para Pacientes','fk_id_familia' => '2'),
array('id_clase' => '27','clase' => 'Agendas y Accesorios','fk_id_familia' => '3'),
array('id_clase' => '28','clase' => 'Suministros De Escritorio','fk_id_familia' => '4'),
array('id_clase' => '29','clase' => 'Muebles Para La Clinica Dental','fk_id_familia' => '5'),
array('id_clase' => '30','clase' => 'Formulas y Productos Para Apoyo Nutritivo','fk_id_familia' => '6'),
array('id_clase' => '31','clase' => 'Espejos Quirurjicos','fk_id_familia' => '7')
);
And this is the structure of the table:
CREATE TABLE 'clase' (
'id_clase' int(11) NOT NULL,
'clase' varchar(500) NOT NULL,
'fk_id_familia' int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;'