close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Column 'county' in where clause is ambiguous - error when adding 'DataAssist Search Behaviour'

Thread began 1/19/2017 11:20 am by s.joiner74419001 | Last modified 7/18/2017 10:54 am by s.joiner74419001 | 1142 views | 6 replies


OK so I have just realised that the problem lied with the two tables ( properties, agents ) being used in the recordset both have a column named 'county'. So I changed the 'county' column in the 'agents' table to 'county_a'. which solved the error.

What I don't understand is the 'county' column from the 'agents' table wasn't being selected in the recordSet. as below -

mysql_select_db($database_Testing_server, $Testing_server);
$query_rsRTMs = "SELECT properties.property_id, properties.property_name, properties.address, properties.town_city, properties.county, properties.`size`, properties.type, properties.acquisition, properties.image, properties.agent_id, properties.alt_tag, properties.title_tag, agents.agent_id,, agents.url FROM properties, agents WHERE properties.agent_id = agents.agent_id ORDER BY properties.acquisition ASC";
$rsRTMs = mysql_query($query_rsRTMs, $Testing_server) or die(mysql_error());
$row_rsRTMs = mysql_fetch_assoc($rsRTMs);
$totalRows_rsRTMs = mysql_num_rows($rsRTMs);

So how is it appearing in the column list from the filter options?

Filter is now working. using the following repeat region to filter the 'county' column.

// RepeatSelectionCounter_2 Begin Loop
$RepeatSelectionCounter_2_IterationsRemaining = $RepeatSelectionCounter_2_Iterations;
if($RepeatSelectionCounterBasedLooping_2 || $row_rsCounty){
<li><a href="right-to-manage-success-t.php?county=<?php echo $row_rsCounty['county']; ?>"><?php echo $row_rsCounty['county']; ?></a></li>
} // RepeatSelectionCounter_2 Begin Alternate Content
<?php } // RepeatSelectionCounter_2 End Alternate Content
if(!$RepeatSelectionCounterBasedLooping_2 && $RepeatSelectionCounter_2_IterationsRemaining != 0){
if(!$row_rsCounty && $RepeatSelectionCounter_2_Iterations == -1){$RepeatSelectionCounter_2_IterationsRemaining = 0;}
$row_rsCounty = mysql_fetch_assoc($rsCounty);
} // RepeatSelectionCounter_2 End Loop

I now want to use a second repeat region to filter the 'agents' column.

I think I need to hand code this just not sure how.

Current page attached

Thanks in advance.

Attached Files

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...