Thank you for the reply but its still the same.
I have noticed When i search for numbers(ie.121345) it does not give me that error.
So, search in all category is working but search in a particular category is not working ?
When I search for "Toyotoa" in a particular category I get this error
Error :Unknown column 'Toyota' in 'where clause'
Here is my table structure.
CREATE TABLE vehicle (
vehicle_id int(11) NOT NULL auto_increment,
vehicle_name varchar(100) NOT NULL default '',
vehicle_img varchar(100) NOT NULL default '',
vehicle_description text NOT NULL,
PRIMARY KEY (vehicle_id)
) TYPE=MyISAM CHARSET=latin1;
CREATE TABLE make (
make_id int(11) NOT NULL auto_increment,
make_vehicle int(11) NOT NULL default '0',
make_name varchar(100) NOT NULL default '',
PRIMARY KEY (make_id)
) TYPE=MyISAM CHARSET=latin1;
# make_vehicle is Foreign key as vehicle_id from vehicle.
CREATE TABLE car (
car_id int(11) NOT NULL auto_increment,
car_title varchar(100) NOT NULL default '',
car_make int(11) NOT NULL default '0',
car_model varchar(100) NOT NULL default '',
car_member int(11) NOT NULL default '0',
PRIMARY KEY (car_id)
) TYPE=MyISAM CHARSET=latin1;
#car_make is foreign key -Make_id from Make table
you can see in the table structure that car_make field is subcateogry of Make table and make is sucategory of Vehicle.
Thank you